1
0
Fork 0

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
This commit is contained in:
faketruth 2011-12-27 22:00:32 +00:00
parent df33f6821c
commit 105d69e27e
1 changed files with 1 additions and 1 deletions

View File

@ -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];