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

Commit

Permalink
Closing the joystick removes it from the list.
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Nov 29, 2011
1 parent 0038e3c commit 0ea44e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/joystick/SDL_joystick.c
Expand Up @@ -404,7 +404,7 @@ SDL_JoystickQuit(void)
SDL_numjoysticks = 0;

for (i = 0; i < numsticks; i++) {
SDL_Joystick *stick = SDL_joysticks[i];
SDL_Joystick *stick = SDL_joysticks[0];
if (stick && (stick->ref_count >= 1)) {
stick->ref_count = 1;
SDL_JoystickClose(stick);
Expand Down

0 comments on commit 0ea44e9

Please sign in to comment.