Don't construct overlay screens in ScreenManager ctor. We havn't reset

GAMESTATE by then, so much of it is uninitialized, and we should not load
screens until that's done.  (fixes valgrind warning due to IsEventMode()
being called from SSystemLayer)
This commit is contained in:
Glenn Maynard
2005-06-23 00:30:02 +00:00
parent d1b8dcc744
commit c587f12d65
2 changed files with 4 additions and 7 deletions
-7
View File
@@ -56,13 +56,6 @@ ScreenManager::ScreenManager()
m_pSharedBGA = new Actor;
m_bZeroNextUpdate = false;
/* By the time this is constructed, THEME has already been set up and set to
* the current theme. Call ThemeChanged(), to handle the starting theme
* and set up m_SystemLayer. */
ASSERT( THEME );
ASSERT( !THEME->GetCurThemeName().empty() );
this->ThemeChanged();
}