Commit 2a901f9a authored by edo9300's avatar edo9300 Committed by GitHub

Fix chat message recieving

parent 12a11304
...@@ -829,7 +829,7 @@ void DuelClient::HandleSTOCPacketLan(char* data, unsigned int len) { ...@@ -829,7 +829,7 @@ void DuelClient::HandleSTOCPacketLan(char* data, unsigned int len) {
} }
wchar_t msg[256]; wchar_t msg[256];
BufferIO::CopyWStr(pkt->msg, msg, 256); BufferIO::CopyWStr(pkt->msg, msg, 256);
msg[(len - 3) / 2] = 0; msg[((len - 3) / 2) - 1] = 0;
mainGame->gMutex.Lock(); mainGame->gMutex.Lock();
mainGame->AddChatMsg(msg, player); mainGame->AddChatMsg(msg, player);
mainGame->gMutex.Unlock(); mainGame->gMutex.Unlock();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment