1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

server/CVCMIServer.cpp: remove variable that was only set but never used

This commit is contained in:
Johannes 'josch' Schauer 2018-04-19 15:18:08 +02:00
parent a54e8c88a9
commit a0be483525
No known key found for this signature in database
GPG Key ID: F2CBA5C78FBD83E1

View File

@ -580,7 +580,6 @@ void CVCMIServer::setPlayer(PlayerColor clickedColor)
PlayerSettings & clicked = si->playerInfos[clickedColor];
PlayerSettings * old = nullptr;
//identify clicked player
int clickedNameID = 0; //number of player - zero means AI, assume it initially
@ -628,7 +627,6 @@ void CVCMIServer::setPlayer(PlayerColor clickedColor)
playerToRestore.color = i->first;
playerToRestore.id = newPlayer;
setPlayerConnectedId(i->second, PlayerSettings::PLAYER_AI); //set computer
old = &i->second;
break;
}
}