Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Fixed SDL_HapticOpened() returning -1 instead of 0.

According to header file it should only return 0 or 1.
  • Loading branch information
philippwiesemann committed Jul 27, 2013
1 parent 21802be commit ef3be01735edb15548a260f7ba2c0fa422a25ba9
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/haptic/SDL_haptic.c
@@ -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;

0 comments on commit ef3be01

Please sign in to comment.