summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorfaketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6>2011-12-27 23:00:32 +0100
committerfaketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6>2011-12-27 23:00:32 +0100
commit105d69e27ec417c715f5880aba61fcf629acd1e0 (patch)
tree4c06fd2db2a59b1e02b162c62d38be6aa006c2b9 /source
parentVanity, just to set back to white after a short enough name for the ping image to not change color (diff)
downloadcuberite-105d69e27ec417c715f5880aba61fcf629acd1e0.tar
cuberite-105d69e27ec417c715f5880aba61fcf629acd1e0.tar.gz
cuberite-105d69e27ec417c715f5880aba61fcf629acd1e0.tar.bz2
cuberite-105d69e27ec417c715f5880aba61fcf629acd1e0.tar.lz
cuberite-105d69e27ec417c715f5880aba61fcf629acd1e0.tar.xz
cuberite-105d69e27ec417c715f5880aba61fcf629acd1e0.tar.zst
cuberite-105d69e27ec417c715f5880aba61fcf629acd1e0.zip
Diffstat (limited to 'source')
-rw-r--r--source/packets/cPacket_PlayerListItem.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/packets/cPacket_PlayerListItem.cpp b/source/packets/cPacket_PlayerListItem.cpp
index e19dd902c..2ddcf6799 100644
--- a/source/packets/cPacket_PlayerListItem.cpp
+++ b/source/packets/cPacket_PlayerListItem.cpp
@@ -24,7 +24,7 @@ bool cPacket_PlayerListItem::Send( cSocket & a_Socket )
int end = (len <= 16) ? len : 16;
m_PlayerName = m_PlayerName.substr(0, end);
if (len <= 14)
- m_PlayerName += cChatColor::MakeColor((char)cChatColor::White.c_str());
+ m_PlayerName += cChatColor::MakeColor(cChatColor::White.c_str()[0]);
unsigned int TotalSize = c_Size + m_PlayerName.size()*sizeof(short);
char* Message = new char[TotalSize];