Commit 8866da6a authored by Chen Bill's avatar Chen Bill Committed by GitHub

Update netserver.cpp

parent a7cd28e2
...@@ -214,9 +214,9 @@ void NetServer::HandleCTOSPacket(DuelPlayer* dp, unsigned char* data, int len) { ...@@ -214,9 +214,9 @@ void NetServer::HandleCTOSPacket(DuelPlayer* dp, unsigned char* data, int len) {
case CTOS_UPDATE_DECK: { case CTOS_UPDATE_DECK: {
if(!dp->game) if(!dp->game)
return; return;
if (len < 1 + (int)sizeof(int32_t)+ (int)sizeof(int32_t)) if (len < 1 + (int)sizeof(int32_t) + (int)sizeof(int32_t))
return; return;
if (len > 1 + sizeof(CTOS_DeckData)) if (len > 1 + (int)sizeof(CTOS_DeckData))
return; return;
duel_mode->UpdateDeck(dp, pdata, len - 1); duel_mode->UpdateDeck(dp, pdata, 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