Navigation Menu

Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Fixed SDL_HapticOpened() returning -1 instead of 0.
Browse files Browse the repository at this point in the history
According to header file it should only return 0 or 1.
  • Loading branch information
philippwiesemann committed Jul 27, 2013
1 parent 21802be commit ef3be01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/haptic/SDL_haptic.c
Expand Up @@ -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;
Expand Down

0 comments on commit ef3be01

Please sign in to comment.