Fix "style,single;song,foo;steps,fum;screen,ScreenFoo" causing an assert

in GetAndClearScreen.  We can't LoadOne each part without actually applying
each first; "steps" will fail due to style and song not actually having
been set.
This commit is contained in:
Glenn Maynard
2005-10-16 01:04:55 +00:00
parent 204da36929
commit f56cea11aa
+3 -5
View File
@@ -688,12 +688,10 @@ CString GameCommand::GetAndClearScreen()
CString sRet;
FOREACH( Command, m_Commands.v, cmd )
{
GameCommand gc;
gc.m_bInvalid = false;
gc.LoadOne( *cmd );
if( gc.m_sScreen != "" )
CString sName = cmd->GetName();
if( sName == "screen" )
{
sRet = gc.m_sScreen;
sRet = cmd->GetArg(1);
m_Commands.v.erase( cmd );
break;
}