1
0

Declared one mutex as mutable in order to allow for const correct get accessors.

This commit is contained in:
jfhumann
2014-04-19 17:53:02 +02:00
parent 5bed1c09bc
commit 4dd7610381
3 changed files with 7 additions and 7 deletions

View File

@@ -453,14 +453,14 @@ void cClientHandle::HandlePing(void)
{
// Somebody tries to retrieve information about the server
AString Reply;
cServer * Server = cRoot::Get()->GetServer();
const cServer & Server = *cRoot::Get()->GetServer();
Printf(Reply, "%s%s%i%s%i",
Server->GetDescription().c_str(),
Server.GetDescription().c_str(),
cChatColor::Delimiter.c_str(),
Server->GetNumPlayers(),
Server.GetNumPlayers(),
cChatColor::Delimiter.c_str(),
Server->GetMaxPlayers()
Server.GetMaxPlayers()
);
Kick(Reply);
}