fix ScreenSelect loading screens two or three times (!) due to broken

"clear m_sScreen" logic
This commit is contained in:
Glenn Maynard
2005-04-26 05:39:12 +00:00
parent 4e6f00ba9e
commit 9c0679c738
3 changed files with 26 additions and 2 deletions
+2 -2
View File
@@ -212,9 +212,9 @@ void ScreenSelect::HandleScreenMessage( const ScreenMessage SM )
FOREACH_HumanPlayer( p )
{
GameCommand gc = m_aGameCommands[this->GetSelectionIndex(p)];
CString sThisScreen = gc.GetAndClearScreen();
if( sScreen == "" )
sScreen = gc.m_sScreen;
gc.m_sScreen = "";
sScreen = sThisScreen;
gc.Apply( p );
}