QT-SDL: Fix SDL Input compilation

This commit is contained in:
refractionpcsx2 2022-01-31 14:29:03 +00:00
parent 9c3270a2de
commit 105aab0345
1 changed files with 1 additions and 1 deletions

View File

@ -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();