From c2302b37769b760d09544729dd433dbd23b15fea Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sat, 26 Apr 2003 06:06:24 +0000 Subject: [PATCH] fix crash --- stepmania/src/ScreenEdit.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stepmania/src/ScreenEdit.cpp b/stepmania/src/ScreenEdit.cpp index 438328e492..3ccaf509ff 100644 --- a/stepmania/src/ScreenEdit.cpp +++ b/stepmania/src/ScreenEdit.cpp @@ -601,7 +601,8 @@ void ScreenEdit::InputEdit( const DeviceInput& DeviceI, const InputEventType typ if( type != IET_FIRST_PRESS ) break; // We only care about first presses - int iCol = DeviceI.button - SDLK_1; + const int iCol = DeviceI.button == SDLK_0? 9: DeviceI.button - SDLK_1; + const float fSongBeat = GAMESTATE->m_fSongBeat; const int iSongIndex = BeatToNoteRow( fSongBeat );