From f7bcb3e14626d55ff4445ecda8e9d35fad577546 Mon Sep 17 00:00:00 2001 From: Bart van Strien Date: Mon, 17 Jan 2011 11:22:59 +0100 Subject: [PATCH] Revert that last commit, the wrappers already handle the offset --HG-- branch : minor --- src/modules/joystick/sdl/Joystick.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/joystick/sdl/Joystick.cpp b/src/modules/joystick/sdl/Joystick.cpp index 80f0bb017..5c896147a 100644 --- a/src/modules/joystick/sdl/Joystick.cpp +++ b/src/modules/joystick/sdl/Joystick.cpp @@ -68,7 +68,7 @@ namespace sdl bool Joystick::checkIndex(int index) { - return index > 0 && index <= getNumJoysticks(); + return index >= 0 && index < getNumJoysticks(); } int Joystick::getNumJoysticks()