From 10823d60654f8f19bd5d496eed97c4f5a528eb49 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Tue, 29 Nov 2011 02:12:24 -0500 Subject: [PATCH] Invalid assert. It's perfectly legit to initialize the joystick subsystem and get no joysticks. --- src/joystick/SDL_joystick.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/joystick/SDL_joystick.c b/src/joystick/SDL_joystick.c index 73b2c8315..401036dab 100644 --- a/src/joystick/SDL_joystick.c +++ b/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)) {