From 732787cbf2e9b2824d83febf0adf972db3789bcb Mon Sep 17 00:00:00 2001 From: Philipp Wiesemann Date: Sat, 27 Jul 2013 13:39:43 +0200 Subject: [PATCH] Corrected SDL_HapticUpdateEffect() returning 0 instead of index of effect. 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. --- src/haptic/SDL_haptic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/haptic/SDL_haptic.c b/src/haptic/SDL_haptic.c index c1b8d74bb..1c677b14a 100644 --- a/src/haptic/SDL_haptic.c +++ b/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; }