Fixed haptic refcount bug (thanks David Ludwig!)
This commit is contained in:
parent
ccd59359e6
commit
3144954845
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue