UI_BuildFindPlayerList: make a sizeof() more obviously correct

As with the other branch of the if/else, each element of
foundPlayerServerNames is in fact the same size as each element of
foundPlayerServerAddresses, so it was fine; but it's better to make
it obvious that we are using the right array sizes.
This commit is contained in:
Simon McVittie 2016-09-25 16:59:12 +01:00
parent 01bfb1540f
commit f1a133acf1
1 changed files with 1 additions and 1 deletions

View File

@ -4138,7 +4138,7 @@ static void UI_BuildFindPlayerList(qboolean force) {
Com_sprintf(uiInfo.foundPlayerServerNames[0], sizeof(uiInfo.foundPlayerServerNames[0]), "no servers found");
}
else {
Com_sprintf(uiInfo.foundPlayerServerNames[uiInfo.numFoundPlayerServers-1], sizeof(uiInfo.foundPlayerServerAddresses[0]),
Com_sprintf(uiInfo.foundPlayerServerNames[uiInfo.numFoundPlayerServers-1], sizeof(uiInfo.foundPlayerServerNames[0]),
"%d server%s found with player %s", uiInfo.numFoundPlayerServers-1,
uiInfo.numFoundPlayerServers == 2 ? "":"s", uiInfo.findPlayerName);
}