mirror of
https://github.com/Ryujinx/SDL.git
synced 2025-03-23 21:55:12 +00:00
fix SDL_FindFreePlayerIndex so it can really return -1.
This commit is contained in:
parent
35c13196f0
commit
a70964aaf4
|
@ -202,7 +202,7 @@ static SDL_bool SDL_GetDriverAndJoystickIndex(int device_index, SDL_JoystickDriv
|
||||||
|
|
||||||
static int SDL_FindFreePlayerIndex()
|
static int SDL_FindFreePlayerIndex()
|
||||||
{
|
{
|
||||||
int player_index = -1;
|
int player_index;
|
||||||
|
|
||||||
SDL_AssertJoysticksLocked();
|
SDL_AssertJoysticksLocked();
|
||||||
|
|
||||||
|
@ -211,7 +211,7 @@ static int SDL_FindFreePlayerIndex()
|
||||||
return player_index;
|
return player_index;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return player_index;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int SDL_GetPlayerIndexForJoystickID(SDL_JoystickID instance_id)
|
static int SDL_GetPlayerIndexForJoystickID(SDL_JoystickID instance_id)
|
||||||
|
|
Loading…
Reference in a new issue