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.
This commit is contained in:
parent
17482012af
commit
eab7f43fc2
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue