Commit 29177954 authored by Sam Lantinga's avatar Sam Lantinga

It works better if you compile it.

parent f98e8867
...@@ -403,7 +403,7 @@ SDL_JoystickQuit(void) ...@@ -403,7 +403,7 @@ SDL_JoystickQuit(void)
/* Stop the event polling */ /* Stop the event polling */
SDL_numjoysticks = 0; SDL_numjoysticks = 0;
for (i = numjoysticks; i--; ) { for (i = numsticks; i--; ) {
SDL_Joystick *stick = SDL_joysticks[i]; SDL_Joystick *stick = SDL_joysticks[i];
if (stick && (stick->ref_count >= 1)) { if (stick && (stick->ref_count >= 1)) {
stick->ref_count = 1; stick->ref_count = 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment