Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Invalid assert. It's perfectly legit to initialize the joystick subsy…

…stem and get no joysticks.
  • Loading branch information
slouken committed Nov 29, 2011
1 parent 7af468f commit 0038e3c8fa2081d510024d854ab9e71be7bf531c
Showing with 0 additions and 2 deletions.
  1. +0 −2 src/joystick/SDL_joystick.c
@@ -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)) {

0 comments on commit 0038e3c

Please sign in to comment.