hack for ScreenHowToPlay where no players are joined

This commit is contained in:
Chris Danford
2005-08-28 08:58:21 +00:00
parent 23ea565846
commit fdf26927e3
+6 -2
View File
@@ -212,8 +212,12 @@ void Player::Init(
iNumEnabledPlayers++;
}
}
ASSERT( iEnabledPlayerIndex != -1 );
ASSERT( iNumEnabledPlayers > 0 );
if( iNumEnabledPlayers == 0 ) // hack for ScreenHowToPlay where no players are joined
{
iEnabledPlayerIndex = 0;
iNumEnabledPlayers = 1;
}
for( int i=0; i<NUM_REVERSE; i++ )
{