fix a new crash at end of replay log

This commit is contained in:
2024-09-25 13:02:55 -05:00
committed by Celtic Minstrel
parent a21b44c238
commit 4209952c2a

View File

@@ -1641,7 +1641,7 @@ void advance_time(bool did_something, bool need_redraw, bool need_reprint) {
record_action("advance_time", info); record_action("advance_time", info);
} }
if(replaying && replay_verbose){ if(replaying && replay_verbose){
if(next_action_type() == "advance_time"){ if(has_next_action("advance_time")){
std::string _last_action_type = last_action_type; std::string _last_action_type = last_action_type;
Element& element = pop_next_action(); Element& element = pop_next_action();
std::map<std::string,std::string> info = info_from_action(element); std::map<std::string,std::string> info = info_from_action(element);