Don't map more than MAX_GAME_CONTROLLERS.

This commit is contained in:
Steve Checkoway
2006-01-27 10:20:10 +00:00
parent 9120254fdc
commit a8043ac3d8
+1 -1
View File
@@ -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)",