Commit 10823d60 authored by Sam Lantinga's avatar Sam Lantinga

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

parent dd506a22
...@@ -403,8 +403,6 @@ SDL_JoystickQuit(void) ...@@ -403,8 +403,6 @@ SDL_JoystickQuit(void)
/* Stop the event polling */ /* Stop the event polling */
SDL_numjoysticks = 0; SDL_numjoysticks = 0;
SDL_assert( (SDL_joysticks == NULL) == (numsticks == 0) );
for (i = 0; i < numsticks; i++) { for (i = 0; i < numsticks; i++) {
SDL_Joystick *stick = SDL_joysticks[i]; SDL_Joystick *stick = SDL_joysticks[i];
if (stick && (stick->ref_count >= 1)) { if (stick && (stick->ref_count >= 1)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment