瀏覽代碼

Revert that last commit, the wrappers already handle the offset

--HG--
branch : minor
Bart van Strien 14 年之前
父節點
當前提交
f7bcb3e146
共有 1 個文件被更改,包括 1 次插入1 次删除
  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()