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

Corrected SDL_HapticUpdateEffect() returning 0 instead of index of ef…

…fect.

According to documentation in header and wiki the index should be returned.
This change may break existing programs which assume only 0 means a success.
  • Loading branch information
philippwiesemann committed Jul 27, 2013
1 parent 3679f63 commit 732787cbf2e9b2824d83febf0adf972db3789bcb
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/haptic/SDL_haptic.c
@@ -530,7 +530,7 @@ SDL_HapticUpdateEffect(SDL_Haptic * haptic, int effect,

SDL_memcpy(&haptic->effects[effect].effect, data,
sizeof(SDL_HapticEffect));
return 0;
return effect;
}


0 comments on commit 732787c

Please sign in to comment.