From cfefb6715bec5ab98e10d7537c7656cb7692991d Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Fri, 3 Dec 2004 21:52:27 +0000 Subject: [PATCH] fix gcc compile --- stepmania/src/Style.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/stepmania/src/Style.cpp b/stepmania/src/Style.cpp index 7076d47eec..774e59fab4 100644 --- a/stepmania/src/Style.cpp +++ b/stepmania/src/Style.cpp @@ -59,12 +59,10 @@ StyleInput Style::GameInputToStyleInput( const GameInput &GameI ) const return SI; // Return invalid. for( int i = 0; i < GameI.button; ++i ) - { if( m_iInputColumn[GameI.controller][i] == END_MAPPING ) return SI; // Return invalid. - } - SI = StyleInput( (PlayerNumber) GameI.controller, m_iInputColumn[GameI.controller][i] ); + SI = StyleInput( (PlayerNumber) GameI.controller, m_iInputColumn[GameI.controller][GameI.button] ); // HACK: Looking up the player number using m_ColumnInfo // returns the wrong answer for ONE_PLAYER_TWO_SIDES styles