Explorar o código

Revert that last commit, the wrappers already handle the offset

--HG--
branch : minor
Bart van Strien %!s(int64=14) %!d(string=hai) anos
pai
achega
f7bcb3e146
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/modules/joystick/sdl/Joystick.cpp

+ 1 - 1
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()