1
0
Fork 0

Fixed PLI end white, made random mistake late night when I couldn't remember how I did it before

Thanks to FakeTruth

git-svn-id: http://mc-server.googlecode.com/svn/trunk@146 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
mtilden@gmail.com 2011-12-28 15:21:38 +00:00
parent 9e4184ca8d
commit a5d64ae0ca
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(cChatColor::White.c_str()[0]);
m_PlayerName += cChatColor::White; // mistakes happen when you code late night :P
unsigned int TotalSize = c_Size + m_PlayerName.size()*sizeof(short);
char* Message = new char[TotalSize];