Fixed haptic refcount bug (thanks David Ludwig!)
parent
cf4ff728a0
commit
9b1b74e6c0
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue