Merge pull request #10174 from Alcaro/patch-2

Fix tautological comparison
This commit is contained in:
Twinaphex 2020-02-29 06:35:56 +01:00 committed by GitHub
commit fe51b44d98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -4884,7 +4884,7 @@ static int setting_string_action_left_netplay_mitm_server(
if (string_is_equal(setting->value.target.string, netplay_mitm_server_list[i].name))
{
/* move to the previous one in the list, wrap around if necessary */
if (i - 1 >= 0)
if (i >= 1)
{
found = true;
offset = i - 1;