It works better if you compile it.
authorSam Lantinga <slouken@libsdl.org>
Tue, 29 Nov 2011 02:28:34 -0500
changeset 6098 c781fe3628a1
parent 6097 4ea2b4d4937a
child 6100 d4fb196b3f7e
It works better if you compile it.
src/joystick/SDL_joystick.c
--- a/src/joystick/SDL_joystick.c	Tue Nov 29 02:27:34 2011 -0500
+++ b/src/joystick/SDL_joystick.c	Tue Nov 29 02:28:34 2011 -0500
@@ -403,7 +403,7 @@
     /* Stop the event polling */
     SDL_numjoysticks = 0;
 
-    for (i = numjoysticks; i--; ) {
+    for (i = numsticks; i--; ) {
         SDL_Joystick *stick = SDL_joysticks[i];
         if (stick && (stick->ref_count >= 1)) {
             stick->ref_count = 1;