From dabf62b0552be4ccd079fd554a63265b6f1890f0 Mon Sep 17 00:00:00 2001 From: sigatrev Date: Thu, 7 Aug 2014 17:46:20 -0500 Subject: [PATCH] fix ScreenGameplaySyncMachine crash was not setting steps to null, caused access violations --- src/ScreenGameplaySyncMachine.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ScreenGameplaySyncMachine.cpp b/src/ScreenGameplaySyncMachine.cpp index 24456d85bf..399904f26d 100644 --- a/src/ScreenGameplaySyncMachine.cpp +++ b/src/ScreenGameplaySyncMachine.cpp @@ -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 );