Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
It works better if you compile it.
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Nov 29, 2011
1 parent fe87f98 commit 1423d4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/joystick/SDL_joystick.c
Expand Up @@ -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;
Expand Down

0 comments on commit 1423d4e

Please sign in to comment.