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:
@ -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
|
||||
|
Reference in New Issue
Block a user