Invalid assert. It's perfectly legit to initialize the joystick subsystem and get no joysticks.
This commit is contained in:
parent
dd506a225a
commit
10823d6065
1 changed files with 0 additions and 2 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue