From fdf26927e3ca2d620d4992c20433f3590cf4888f Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Sun, 28 Aug 2005 08:58:21 +0000 Subject: [PATCH] hack for ScreenHowToPlay where no players are joined --- stepmania/src/Player.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/stepmania/src/Player.cpp b/stepmania/src/Player.cpp index 16068b5a09..c259a04b75 100644 --- a/stepmania/src/Player.cpp +++ b/stepmania/src/Player.cpp @@ -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