It works better if you compile it.

This commit is contained in:
Sam Lantinga 2011-11-29 02:28:34 -05:00
parent f98e88676c
commit 29177954e7

View file

@ -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;