Invalid assert. It's perfectly legit to initialize the joystick subsystem and get no joysticks.
authorSam Lantinga <slouken@libsdl.org>
Tue, 29 Nov 2011 02:12:24 -0500
changeset 6095 32d8fad8d7ad
parent 6094 5dac1b1261c0
child 6096 71a57385664f
Invalid assert. It's perfectly legit to initialize the joystick subsystem and get no joysticks.
src/joystick/SDL_joystick.c
--- a/src/joystick/SDL_joystick.c	Tue Nov 29 02:11:39 2011 -0500
+++ b/src/joystick/SDL_joystick.c	Tue Nov 29 02:12:24 2011 -0500
@@ -403,8 +403,6 @@
     /* 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)) {