From 8c5c84b6910221fabc4fb3d9e6eec75ad57a6fbf Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Fri, 10 Oct 2003 22:22:10 +0000 Subject: [PATCH] Re-fix '0' crashing the editor --- stepmania/src/ScreenEdit.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/stepmania/src/ScreenEdit.cpp b/stepmania/src/ScreenEdit.cpp index 6a9d91186c..5e3770135e 100644 --- a/stepmania/src/ScreenEdit.cpp +++ b/stepmania/src/ScreenEdit.cpp @@ -613,7 +613,10 @@ 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; + /* Why was this changed back to just "DeviceI.button - SDLK_1"? That causes + * crashes when 0 is pressed (0 - 1 = -1). -glenn */ +// int iCol = DeviceI.button - SDLK_1; + int iCol = DeviceI.button == SDLK_0? 9: DeviceI.button - SDLK_1; // Alt + number = input to right half