From 3fa0ecbc17379adf42f9641e1a8c8ec02a59329b Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sat, 13 Jan 2007 03:02:33 +0000 Subject: [PATCH] fix offset --- stepmania/src/Style.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stepmania/src/Style.cpp b/stepmania/src/Style.cpp index d250df79d4..ae3c87435b 100644 --- a/stepmania/src/Style.cpp +++ b/stepmania/src/Style.cpp @@ -46,7 +46,7 @@ GameInput Style::StyleInputToGameInput( int iCol, PlayerNumber pn ) const if( bUsingOneSide && gc != (int) pn ) continue; - for( int i = GAME_BUTTON_NEXT; i < INPUTMAPPER->GetInputScheme()->m_iButtonsPerController && m_iInputColumn[gc][i] != END_MAPPING; ++i ) + for( int i = GAME_BUTTON_NEXT; i < INPUTMAPPER->GetInputScheme()->m_iButtonsPerController && m_iInputColumn[gc][i-GAME_BUTTON_NEXT] != END_MAPPING; ++i ) { if( m_iInputColumn[gc][i-GAME_BUTTON_NEXT] == iCol ) return GameInput( gc, i );