Commit 6756a0ff authored by nanahira's avatar nanahira

fix

parent 83bbacd3
...@@ -929,7 +929,7 @@ int32 scriptlib::duel_confirm_decktop(lua_State *L) { ...@@ -929,7 +929,7 @@ int32 scriptlib::duel_confirm_decktop(lua_State *L) {
pduel->write_buffer8(MSG_CONFIRM_DECKTOP); pduel->write_buffer8(MSG_CONFIRM_DECKTOP);
pduel->write_buffer8(playerid); pduel->write_buffer8(playerid);
pduel->write_buffer8(count); pduel->write_buffer8(count);
card_set ccards; field::card_set ccards;
uint32 reason = 0; uint32 reason = 0;
if(lua_gettop(L) >= 3) if(lua_gettop(L) >= 3)
reason = lua_tointeger(L, 3); reason = lua_tointeger(L, 3);
...@@ -941,7 +941,7 @@ int32 scriptlib::duel_confirm_decktop(lua_State *L) { ...@@ -941,7 +941,7 @@ int32 scriptlib::duel_confirm_decktop(lua_State *L) {
pduel->game_field->raise_single_event(*cit, 0, EVENT_CUSTOM+50000000, pduel->game_field->core.reason_effect, reason, pduel->game_field->core.reason_player, playerid, count); pduel->game_field->raise_single_event(*cit, 0, EVENT_CUSTOM+50000000, pduel->game_field->core.reason_effect, reason, pduel->game_field->core.reason_player, playerid, count);
ccards.insert(*cit); ccards.insert(*cit);
} }
pduel->game_field->raise_event(ccards, EVENT_CUSTOM+50000000, pduel->game_field->core.reason_effect, reason, pduel->game_field->core.reason_player, playerid, count); pduel->game_field->raise_event(&ccards, EVENT_CUSTOM+50000000, pduel->game_field->core.reason_effect, reason, pduel->game_field->core.reason_player, playerid, count);
pduel->game_field->add_process(PROCESSOR_WAIT, 0, 0, 0, 0, 0); pduel->game_field->add_process(PROCESSOR_WAIT, 0, 0, 0, 0, 0);
return lua_yield(L, 0); return lua_yield(L, 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