Commit 5771b1e9 authored by salix5's avatar salix5

Merge pull request #1641 from IceYGO/bugfix-reloadfield-player

Use LocalPlayer() to retrieve the correct player index in MSG_RELOAD_FIELD
parents bc0181d3 50417df7
......@@ -3062,7 +3062,8 @@ int DuelClient::ClientAnalyze(char * msg, unsigned int len) {
mainGame->gMutex.Lock();
mainGame->dField.Clear();
int val = 0;
for(int p = 0; p < 2; ++p) {
for(int i = 0; i < 2; ++i) {
int p = mainGame->LocalPlayer(i);
mainGame->dInfo.lp[p] = BufferIO::ReadInt32(pbuf);
myswprintf(mainGame->dInfo.strLP[p], L"%d", mainGame->dInfo.lp[p]);
for(int seq = 0; seq < 5; ++seq) {
......
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