Fix showing errors from replaying dialogs

This commit is contained in:
2025-04-29 18:11:53 -05:00
parent 441e077455
commit 22617273ee

View File

@@ -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)){