Commit 445dad63 authored by wind2009's avatar wind2009

Fix

parent 2f73b06d
Pipeline #37015 passed with stages
in 6 minutes and 12 seconds
...@@ -848,11 +848,11 @@ int SingleDuel::Analyze(unsigned char* msgbuffer, unsigned int len) { ...@@ -848,11 +848,11 @@ int SingleDuel::Analyze(unsigned char* msgbuffer, unsigned int len) {
case MSG_SAVE_PICK_DECK: { case MSG_SAVE_PICK_DECK: {
player = BufferIO::ReadInt8(pbuf); player = BufferIO::ReadInt8(pbuf);
count = BufferIO::ReadInt8(pbuf); count = BufferIO::ReadInt8(pbuf);
int cardlist[128]; uint32_t cardlist[128];
int counter = 0; int counter = 0;
Deck tdeck; Deck tdeck;
for(int i = 0; i < count; i++) { for(int i = 0; i < count; i++) {
int code = BufferIO::ReadInt32(pbuf); uint32_t code = BufferIO::ReadUInt32(pbuf);
cardlist[counter++] = code; cardlist[counter++] = code;
} }
deckManager.LoadDeck(tdeck, cardlist, count, 0); deckManager.LoadDeck(tdeck, cardlist, count, 0);
......
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