From c559ff69b6005647964f3d5b5fc1c084ff564a9c Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Thu, 14 Sep 2006 20:26:17 +0000 Subject: [PATCH] IsHumanPlayer( PLAYER_INVALID ) always false, so we can do IsHumanPlayer(input.pn) without an extra check --- stepmania/src/GameState.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/stepmania/src/GameState.cpp b/stepmania/src/GameState.cpp index 9713f894ad..26324d6fd6 100644 --- a/stepmania/src/GameState.cpp +++ b/stepmania/src/GameState.cpp @@ -886,6 +886,9 @@ bool GameState::PlayerUsingBothSides() const bool GameState::IsHumanPlayer( PlayerNumber pn ) const { + if( pn == PLAYER_INVALID ) + return false; + if( m_pCurStyle == NULL ) // no style chosen { if( PlayersCanJoin() )