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 dc646c6468
commit 41edaa9b20

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;