Fixed SDL_HapticOpened() returning -1 instead of 0.

According to header file it should only return 0 or 1.
This commit is contained in:
Philipp Wiesemann
2013-07-27 14:22:52 +02:00
parent 4f10b00b2b
commit 2f2a724332

View File

@@ -182,7 +182,7 @@ SDL_HapticOpened(int device_index)
if ((device_index < 0) || (device_index >= SDL_numhaptics)) {
SDL_SetError("Haptic: There are %d haptic devices available",
SDL_numhaptics);
return -1;
return 0;
}
opened = 0;