1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-15 00:05:02 +02:00

Apply suggestions from code review

Co-authored-by: Nordsoft91 <nordsoft@yahoo.com>
This commit is contained in:
Laserlicht
2023-10-16 21:24:59 +02:00
committed by GitHub
parent f6843c0574
commit 0a1578b797
4 changed files with 5 additions and 5 deletions

View File

@ -845,7 +845,7 @@ void CVCMIServer::setPlayerName(PlayerColor color, std::string name)
if(!player.isControlledByHuman())
return;
if(!player.connectedPlayerIDs.size())
if(player.connectedPlayerIDs.empty())
return;
int nameID = *(player.connectedPlayerIDs.begin()); //if not AI - set appropiate ID