(Netplay) Fix client info devices index (#14142)

This commit is contained in:
Cthulhu-throwaway 2022-07-03 23:00:55 -03:00 committed by GitHub
parent 794e088ae1
commit 0b2be028ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8599,7 +8599,7 @@ static size_t retrieve_client_info(netplay_t *netplay, netplay_client_info_t *bu
info->protocol = connection->netplay_protocol;
info->mode = connection->mode;
info->ping = connection->ping;
info->devices = netplay->client_devices[i];
info->devices = netplay->client_devices[i + 1];
strlcpy(info->name, connection->nick, sizeof(info->name));
}
}