Fixed haptic refcount bug (thanks David Ludwig!)

main
Sam Lantinga 2014-07-04 17:20:22 -07:00
parent cf4ff728a0
commit 9b1b74e6c0
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}