diff --git a/src/client/input/sdl3.c b/src/client/input/sdl3.c index 49e410467..52b97535e 100644 --- a/src/client/input/sdl3.c +++ b/src/client/input/sdl3.c @@ -864,7 +864,7 @@ IN_Update(void) break; case SDL_EVENT_GAMEPAD_REMOVED : - if (controller && event.gdevice.which == SDL_GetJoystickInstanceID(SDL_GetGamepadJoystick(controller))) { + if (controller && event.gdevice.which == SDL_GetJoystickID(SDL_GetGamepadJoystick(controller))) { Cvar_SetValue("paused", 1); IN_Controller_Shutdown(true); IN_Controller_Init(false);