From a0be4835251f64c9480431ad4fd06f6068a55adb Mon Sep 17 00:00:00 2001 From: Johannes 'josch' Schauer Date: Thu, 19 Apr 2018 15:18:08 +0200 Subject: [PATCH] server/CVCMIServer.cpp: remove variable that was only set but never used --- server/CVCMIServer.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/server/CVCMIServer.cpp b/server/CVCMIServer.cpp index bd019c839..644c0a42e 100644 --- a/server/CVCMIServer.cpp +++ b/server/CVCMIServer.cpp @@ -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; } }