Fix showing errors from replaying dialogs
This commit is contained in:
@@ -603,6 +603,7 @@ void cDialog::handle_events() {
|
|||||||
// The error is recorded for debugging only. It should be triggered by replaying the actions.
|
// The error is recorded for debugging only. It should be triggered by replaying the actions.
|
||||||
pop_next_action();
|
pop_next_action();
|
||||||
}else if(replaying && has_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()) };
|
throw std::string { "Replaying a dialog, have the wrong replay action: " + next_action_type() + " on line " + std::to_string(next_action_line()) };
|
||||||
}else{
|
}else{
|
||||||
while(pollEvent(win, currentEvent)){
|
while(pollEvent(win, currentEvent)){
|
||||||
|
Reference in New Issue
Block a user