Commit bbe93200 authored by nanahira's avatar nanahira

fix

parent 0146b342
...@@ -731,6 +731,7 @@ int SingleDuel::Analyze(char* msgbuffer, unsigned int len) { ...@@ -731,6 +731,7 @@ int SingleDuel::Analyze(char* msgbuffer, unsigned int len) {
} }
deckManager.LoadDeck(tdeck, cardlist, count, 0); deckManager.LoadDeck(tdeck, cardlist, count, 0);
pick_deck[player] = tdeck; pick_deck[player] = tdeck;
pick_deck_saved[player] = true;
break; break;
} }
case MSG_RETRY: { case MSG_RETRY: {
......
...@@ -30,6 +30,7 @@ int32 scriptlib::duel_save_pick_deck(lua_State * L) { ...@@ -30,6 +30,7 @@ int32 scriptlib::duel_save_pick_deck(lua_State * L) {
for(auto cit = pgroup->container.begin(); cit != pgroup->container.end(); ++cit) { for(auto cit = pgroup->container.begin(); cit != pgroup->container.end(); ++cit) {
pduel->write_buffer32((*cit)->data.code); pduel->write_buffer32((*cit)->data.code);
} }
return 0;
} }
//modded //modded
int32 scriptlib::duel_select_field(lua_State * L) { int32 scriptlib::duel_select_field(lua_State * L) {
......
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