Skip to content

Commit

Permalink
fix duel::clear (#727)
Browse files Browse the repository at this point in the history
  • Loading branch information
salix5 authored Feb 11, 2025
1 parent 26413fc commit fe48b4f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions duel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
duel::duel() {
lua = new interpreter(this);
game_field = new field(this);
game_field->temp_card = new_card(0);
game_field->temp_card = new_card(TEMP_CARD_ID);
message_buffer.reserve(SIZE_MESSAGE_BUFFER);
#ifdef _WIN32
_set_error_mode(_OUT_TO_MSGBOX);
Expand All @@ -45,8 +45,11 @@ void duel::clear() {
cards.clear();
groups.clear();
effects.clear();
assumes.clear();
sgroups.clear();
uncopy.clear();
game_field = new field(this);
game_field->temp_card = new_card(0);
game_field->temp_card = new_card(TEMP_CARD_ID);
}
card* duel::new_card(uint32_t code) {
card* pcard = new card(this);
Expand Down

0 comments on commit fe48b4f

Please sign in to comment.