Commit 02adc741 authored by mercury233's avatar mercury233

Merge branch 'master' of https://github.com/Fluorohydride/ygopro into test

parents 418c1d85 7db010db
...@@ -859,14 +859,13 @@ bool ReplayMode::ReplayAnalyze(char* msg, unsigned int len) { ...@@ -859,14 +859,13 @@ bool ReplayMode::ReplayAnalyze(char* msg, unsigned int len) {
break; break;
} }
case MSG_AI_NAME: { case MSG_AI_NAME: {
char namebuf[128];
wchar_t wname[128];
int len = BufferIO::ReadInt16(pbuf); int len = BufferIO::ReadInt16(pbuf);
char* begin = pbuf;
pbuf += len + 1; pbuf += len + 1;
memcpy(namebuf, begin, len + 1); break;
BufferIO::DecodeUTF8(namebuf, wname); }
BufferIO::CopyWStr(wname, mainGame->dInfo.clientname, 20); case MSG_SHOW_HINT: {
int len = BufferIO::ReadInt16(pbuf);
pbuf += len + 1;
break; break;
} }
} }
......
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