From 29177954e758bd4078dd224a49f7665933de9cda Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Tue, 29 Nov 2011 02:28:34 -0500 Subject: [PATCH] It works better if you compile it. --- src/joystick/SDL_joystick.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/joystick/SDL_joystick.c b/src/joystick/SDL_joystick.c index 96b443061..662763b35 100644 --- a/src/joystick/SDL_joystick.c +++ b/src/joystick/SDL_joystick.c @@ -403,7 +403,7 @@ SDL_JoystickQuit(void) /* 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;