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:
parent
a54e8c88a9
commit
a0be483525
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user