Skip to content

Commit

Permalink
Fixed haptic refcount bug (thanks David Ludwig!)
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Jul 5, 2014
1 parent cf4ff72 commit 9b1b74e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/haptic/SDL_haptic.c
Expand Up @@ -343,7 +343,7 @@ SDL_HapticClose(SDL_Haptic * haptic)
}

/* Check if it's still in use */
if (--haptic->ref_count < 0) {
if (--haptic->ref_count > 0) {
return;
}

Expand Down

0 comments on commit 9b1b74e

Please sign in to comment.