Navigation Menu

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

Commit

Permalink
Corrected SDL_HapticUpdateEffect() returning 0 instead of index of ef…
Browse files Browse the repository at this point in the history
…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 732787c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/haptic/SDL_haptic.c
Expand Up @@ -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;
}


Expand Down

0 comments on commit 732787c

Please sign in to comment.