We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4819db commit 43f3991Copy full SHA for 43f3991
src/haptic/linux/SDL_syshaptic.c
@@ -1117,13 +1117,12 @@ bool SDL_SYS_HapticResume(SDL_Haptic *haptic)
1117
*/
1118
bool SDL_SYS_HapticStopAll(SDL_Haptic *haptic)
1119
{
1120
- int i, ret;
+ int i;
1121
1122
// Linux does not support this natively so we have to loop.
1123
for (i = 0; i < haptic->neffects; i++) {
1124
if (haptic->effects[i].hweffect != NULL) {
1125
- ret = SDL_SYS_HapticStopEffect(haptic, &haptic->effects[i]);
1126
- if (ret < 0) {
+ if (!SDL_SYS_HapticStopEffect(haptic, &haptic->effects[i])) {
1127
return SDL_SetError("Haptic: Error while trying to stop all playing effects.");
1128
}
1129
0 commit comments