# HG changeset patch # User Sam Lantinga # Date 1322550744 18000 # Node ID 32d8fad8d7ad014f82b027850b4eafc811c4b219 # Parent 5dac1b1261c00293f861e34a68cdf63b5eeab642 Invalid assert. It's perfectly legit to initialize the joystick subsystem and get no joysticks. diff -r 5dac1b1261c0 -r 32d8fad8d7ad 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)) {