From a8043ac3d8ceb024b749f6a59854b03e070a8668 Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Fri, 27 Jan 2006 10:20:10 +0000 Subject: [PATCH] Don't map more than MAX_GAME_CONTROLLERS. --- stepmania/src/InputMapper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stepmania/src/InputMapper.cpp b/stepmania/src/InputMapper.cpp index b0de6fb8e0..92d9682a24 100644 --- a/stepmania/src/InputMapper.cpp +++ b/stepmania/src/InputMapper.cpp @@ -451,7 +451,7 @@ void InputMapper::AutoMapJoysticksForCurrentGame() // We have a mapping for this joystick // GameController gc = (GameController)iNumJoysticksMapped; - if( gc >= GAME_CONTROLLER_INVALID ) + if( gc >= MAX_GAME_CONTROLLERS ) break; // stop mapping. We already mapped one device for each game controller. LOG->Info( "Applying default joystick mapping #%d for device '%s' (%s)",