Fixed haptic refcount bug (thanks David Ludwig!)
diff --git a/src/haptic/SDL_haptic.c b/src/haptic/SDL_haptic.c
index fbfe14f..596b26e 100644
--- a/src/haptic/SDL_haptic.c
+++ b/src/haptic/SDL_haptic.c
@@ -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;
}