diff --git a/src/haptic/SDL_haptic.c b/src/haptic/SDL_haptic.c index 5952a455d..d0b6bd25d 100644 --- a/src/haptic/SDL_haptic.c +++ b/src/haptic/SDL_haptic.c @@ -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;