Commit 8ec561bb authored by VanillaSalt's avatar VanillaSalt

fix

parent 0962bce7
......@@ -17,6 +17,7 @@
duel::duel() {
lua = new interpreter(this);
game_field = new field(this);
game_field->temp_card = new_card(0);
clear_buffer();
}
duel::~duel() {
......@@ -41,6 +42,7 @@ void duel::clear() {
groups.clear();
effects.clear();
game_field = new field(this);
game_field->temp_card = new_card(0);
}
card* duel::new_card(uint32 code) {
card* pcard = new card(this);
......
......@@ -25,7 +25,6 @@ bool tevent::operator< (const tevent& v) const {
}
field::field(duel* pduel) {
this->pduel = pduel;
temp_card = pduel->new_card(0);
infos.copy_id = 1;
infos.turn_player = 0;
infos.turn_id = 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