summaryrefslogtreecommitdiffstats
path: root/src/ClientHandle.cpp
diff options
context:
space:
mode:
authorjfhumann <j.f.humann@gmail.com>2014-04-19 17:53:02 +0200
committerjfhumann <j.f.humann@gmail.com>2014-04-19 17:53:02 +0200
commit4dd7610381c5a9cbd29b771e6c98b5d500774ac6 (patch)
tree0a0c76f587dcafd040d618674bdc914ebf7c4dcf /src/ClientHandle.cpp
parentFixed clang compilation errors. Apparently gcc and MSVC do not care about the order of initializer lists, but clang does. (diff)
downloadcuberite-4dd7610381c5a9cbd29b771e6c98b5d500774ac6.tar
cuberite-4dd7610381c5a9cbd29b771e6c98b5d500774ac6.tar.gz
cuberite-4dd7610381c5a9cbd29b771e6c98b5d500774ac6.tar.bz2
cuberite-4dd7610381c5a9cbd29b771e6c98b5d500774ac6.tar.lz
cuberite-4dd7610381c5a9cbd29b771e6c98b5d500774ac6.tar.xz
cuberite-4dd7610381c5a9cbd29b771e6c98b5d500774ac6.tar.zst
cuberite-4dd7610381c5a9cbd29b771e6c98b5d500774ac6.zip
Diffstat (limited to 'src/ClientHandle.cpp')
-rw-r--r--src/ClientHandle.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ClientHandle.cpp b/src/ClientHandle.cpp
index 580e786c9..7f80299f6 100644
--- a/src/ClientHandle.cpp
+++ b/src/ClientHandle.cpp
@@ -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);
}