From a5d64ae0ca29508d11ecc2f9455b9428ff156a55 Mon Sep 17 00:00:00 2001 From: "mtilden@gmail.com" Date: Wed, 28 Dec 2011 15:21:38 +0000 Subject: [PATCH] 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 --- 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 2ddcf6799..03eea157d 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(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];