fix use of unititialized metric

This commit is contained in:
Chris Danford
2005-03-25 08:58:30 +00:00
parent f1f0a94f29
commit 466dbafa93
+4 -1
View File
@@ -23,6 +23,10 @@ ScreenWithMenuElements::ScreenWithMenuElements( CString sClassName ) : Screen( s
{
m_MenuTimer = new MenuTimer;
m_textHelp = new HelpDisplay;
// Needs to be in the constructor in case a derivitive decides to skip
// itself and sends SM_GoToNextScreen to ScreenAttract.
PLAY_MUSIC.Load( m_sName, "PlayMusic" );
}
void ScreenWithMenuElements::Init()
@@ -32,7 +36,6 @@ void ScreenWithMenuElements::Init()
Screen::Init();
FIRST_UPDATE_COMMAND.Load( m_sName, "FirstUpdateCommand" );
PLAY_MUSIC.Load( m_sName, "PlayMusic" );
ASSERT( this->m_SubActors.empty() ); // don't call Init twice!