Invalid assert. It's perfectly legit to initialize the joystick subsystem and get no joysticks.

This commit is contained in:
Sam Lantinga 2011-11-29 02:12:24 -05:00
parent dd506a225a
commit 10823d6065

View file

@ -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)) {