(joypad_connection.c) pad_connection_has_interface - pad >= 0 would

always be true
This commit is contained in:
Twinaphex 2015-04-20 12:12:32 +02:00
parent 915cca9df6
commit d2abe61e30

View File

@ -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;
}