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

Commit

Permalink
Fixed SDL_HapticQuery() returning -1 as unsigned int if device is not…
Browse files Browse the repository at this point in the history
… valid.

The function now returns 0 which is the same as if no effects were supported.
This may be confusing in rare situations but will not matter most of the time.
  • Loading branch information
philippwiesemann committed May 1, 2013
1 parent 6aab025 commit 7c9c395
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/haptic/SDL_haptic.c
Expand Up @@ -397,7 +397,7 @@ unsigned int
SDL_HapticQuery(SDL_Haptic * haptic)
{
if (!ValidHaptic(haptic)) {
return -1;
return 0; /* same as if no effects were supported */
}

return haptic->supported;
Expand Down

0 comments on commit 7c9c395

Please sign in to comment.