Commit 50417df7 authored by IceYGO's avatar IceYGO

Use LocalPlayer() to retrieve the correct player index in MSG_RELOAD_FIELD

parent bc0181d3
...@@ -3062,7 +3062,8 @@ int DuelClient::ClientAnalyze(char * msg, unsigned int len) { ...@@ -3062,7 +3062,8 @@ int DuelClient::ClientAnalyze(char * msg, unsigned int len) {
mainGame->gMutex.Lock(); mainGame->gMutex.Lock();
mainGame->dField.Clear(); mainGame->dField.Clear();
int val = 0; 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); mainGame->dInfo.lp[p] = BufferIO::ReadInt32(pbuf);
myswprintf(mainGame->dInfo.strLP[p], L"%d", mainGame->dInfo.lp[p]); myswprintf(mainGame->dInfo.strLP[p], L"%d", mainGame->dInfo.lp[p]);
for(int seq = 0; seq < 5; ++seq) { 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