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

Commit

Permalink
Invalid assert. It's perfectly legit to initialize the joystick subsy…
Browse files Browse the repository at this point in the history
…stem and get no joysticks.
  • Loading branch information
slouken committed Nov 29, 2011
1 parent 7af468f commit 0038e3c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/joystick/SDL_joystick.c
Expand Up @@ -403,8 +403,6 @@ SDL_JoystickQuit(void)
/* Stop the event polling */
SDL_numjoysticks = 0;

SDL_assert( (SDL_joysticks == NULL) == (numsticks == 0) );

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

0 comments on commit 0038e3c

Please sign in to comment.