Add asserts. By this point, every human player needs to have steps.

This commit is contained in:
Steve Checkoway
2008-07-23 12:22:24 +00:00
parent a94f29aaad
commit 6d8ac95e72
+3
View File
@@ -397,6 +397,9 @@ void ScreenGameplay::Init()
// fill in difficulty of CPU players with that of the first human player
FOREACH_PotentialCpuPlayer(p)
GAMESTATE->m_pCurSteps[p].Set( GAMESTATE->m_pCurSteps[ GAMESTATE->GetFirstHumanPlayer() ] );
FOREACH_EnabledPlayer(p)
ASSERT( GAMESTATE->m_pCurSteps[p].Get() );
/* Increment the course play count. */
if( GAMESTATE->IsCourseMode() && !GAMESTATE->m_bDemonstrationOrJukebox )