Skip to content

Commit 70b12c1

Browse files
committed
Check to see if joysticks are actually initialized in SDL_UpdateJoysticks()
Fixes libsdl-org#14362 (cherry picked from commit c21b7f8)
1 parent 2bbd74b commit 70b12c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/joystick/SDL_joystick.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2502,7 +2502,7 @@ void SDL_UpdateJoysticks(void)
25022502
Uint64 now;
25032503
SDL_Joystick *joystick;
25042504

2505-
if (!SDL_WasInit(SDL_INIT_JOYSTICK)) {
2505+
if (!SDL_joysticks_initialized) {
25062506
return;
25072507
}
25082508

0 commit comments

Comments
 (0)