Fixed haptic refcount bug (thanks David Ludwig!)
authorSam Lantinga <slouken@libsdl.org>
Fri, 04 Jul 2014 17:20:22 -0700
changeset 8974f813b8b10b55
parent 8973 47fb6a7e7f68
child 8975 180271d72b1e
Fixed haptic refcount bug (thanks David Ludwig!)
src/haptic/SDL_haptic.c
     1.1 --- a/src/haptic/SDL_haptic.c	Fri Jul 04 18:20:23 2014 -0400
     1.2 +++ b/src/haptic/SDL_haptic.c	Fri Jul 04 17:20:22 2014 -0700
     1.3 @@ -343,7 +343,7 @@
     1.4      }
     1.5  
     1.6      /* Check if it's still in use */
     1.7 -    if (--haptic->ref_count < 0) {
     1.8 +    if (--haptic->ref_count > 0) {
     1.9          return;
    1.10      }
    1.11