throw error for unknown replay actions

This commit is contained in:
2024-08-31 14:07:55 -05:00
committed by Celtic Minstrel
parent 36814a7a57
commit 4f50667e78

View File

@@ -539,6 +539,10 @@ static void replay_next_action() {
handle_talk_node(word_rect.node);
}else if(t == "end_shop_mode"){
end_shop_mode();
}else{
std::ostringstream sstr;
sstr << "Couldn't replay action: " << next_action;
throw sstr.str();
}
// TODO some of these actions shouldn't call advance_time(). They should return