From 105d69e27ec417c715f5880aba61fcf629acd1e0 Mon Sep 17 00:00:00 2001 From: faketruth Date: Tue, 27 Dec 2011 22:00:32 +0000 Subject: Fixed a little error in cPacket_PlayerListItem.cpp char* was casted to char, but you actually need to get the first index of the array. git-svn-id: http://mc-server.googlecode.com/svn/trunk@137 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/packets/cPacket_PlayerListItem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]; -- cgit v1.2.3