throw error when checking next_action_type() of null

This commit is contained in:
2024-07-27 20:20:08 -05:00
committed by Celtic Minstrel
parent 3c3a105ae4
commit 4e1c228161

View File

@@ -86,6 +86,9 @@ bool has_next_action() {
}
std::string next_action_type() {
if(next_action == nullptr){
throw "Replay error! No action left to check type";
}
return next_action->Value();
}