Commit 5087008e authored by mercury233's avatar mercury233 Committed by GitHub

fix Duel.Draw return value on deck empty (#508)

parent 0bf8300e
......@@ -445,7 +445,7 @@ int32 field::draw(uint16 step, effect* reason_effect, uint32 reason, uint8 reaso
card_set* drawed_set = (card_set*)core.units.begin()->ptarget;
core.operated_set.swap(*drawed_set);
delete drawed_set;
returns.ivalue[0] = count;
returns.ivalue[0] = (int32)core.operated_set.size();
return TRUE;
}
}
......
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