From 6d8ac95e72f56a54007290daaf937dd1d851cf8f Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Wed, 23 Jul 2008 12:22:24 +0000 Subject: [PATCH] Add asserts. By this point, every human player needs to have steps. --- stepmania/src/ScreenGameplay.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/stepmania/src/ScreenGameplay.cpp b/stepmania/src/ScreenGameplay.cpp index e194054686..a6f19cc8df 100644 --- a/stepmania/src/ScreenGameplay.cpp +++ b/stepmania/src/ScreenGameplay.cpp @@ -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 )