fix ScreenGameplaySyncMachine crash

was not setting steps to null, caused access violations
This commit is contained in:
sigatrev
2014-08-07 17:46:20 -05:00
parent f0d6bce62a
commit dabf62b055
+4
View File
@@ -94,6 +94,10 @@ void ScreenGameplaySyncMachine::HandleScreenMessage( const ScreenMessage SM )
if( SM == SM_GoToPrevScreen || SM == SM_GoToNextScreen )
{
FOREACH_PlayerNumber( pn )
{
GAMESTATE->m_pCurSteps[pn].Set( NULL );
}
GAMESTATE->m_PlayMode.Set( PlayMode_Invalid );
GAMESTATE->SetCurrentStyle( NULL );
GAMESTATE->m_pCurSong.Set( NULL );