mirror of
https://github.com/libretro/RetroArch
synced 2025-01-17 10:18:17 +00:00
(joypad_connection.c) pad_connection_has_interface - pad >= 0 would
always be true
This commit is contained in:
parent
915cca9df6
commit
d2abe61e30
@ -152,7 +152,7 @@ int16_t pad_connection_get_axis(joypad_connection_t *joyconn,
|
||||
|
||||
bool pad_connection_has_interface(joypad_connection_t *joyconn, unsigned pad)
|
||||
{
|
||||
if (joyconn && pad >= 0 && pad < MAX_USERS && joyconn[pad].connected && joyconn[pad].iface)
|
||||
if (joyconn && pad < MAX_USERS && joyconn[pad].connected && joyconn[pad].iface)
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user