From 105aab0345a629100d13b15a4760392bed42801f Mon Sep 17 00:00:00 2001 From: refractionpcsx2 Date: Mon, 31 Jan 2022 14:29:03 +0000 Subject: [PATCH] QT-SDL: Fix SDL Input compilation --- pcsx2/Frontend/SDLInputSource.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcsx2/Frontend/SDLInputSource.cpp b/pcsx2/Frontend/SDLInputSource.cpp index c6a82e9bc2..e8b5d67b3b 100644 --- a/pcsx2/Frontend/SDLInputSource.cpp +++ b/pcsx2/Frontend/SDLInputSource.cpp @@ -337,7 +337,7 @@ bool SDLInputSource::OpenGameController(int index) } const int joystick_id = SDL_JoystickInstanceID(joystick); - const int player_id = SDL_GameControllerGetPlayerIndex(gcontroller); + int player_id = SDL_GameControllerGetPlayerIndex(gcontroller); if (player_id < 0 || GetControllerDataForPlayerId(player_id) != m_controllers.end()) { const int free_player_id = GetFreePlayerId();