mirror of
https://github.com/encounter/SDL.git
synced 2025-12-09 05:27:48 +00:00
Fixed haptic refcount bug (thanks David Ludwig!)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user