diff --git a/src/dialogxml/dialogs/dialog.cpp b/src/dialogxml/dialogs/dialog.cpp index d0dc9ead..9479b5b9 100644 --- a/src/dialogxml/dialogs/dialog.cpp +++ b/src/dialogxml/dialogs/dialog.cpp @@ -603,6 +603,7 @@ void cDialog::handle_events() { // The error is recorded for debugging only. It should be triggered by replaying the actions. pop_next_action(); }else if(replaying && has_next_action()){ + replaying = false; throw std::string { "Replaying a dialog, have the wrong replay action: " + next_action_type() + " on line " + std::to_string(next_action_line()) }; }else{ while(pollEvent(win, currentEvent)){