Skip to content

Commit

Permalink
add a check for replay correctness
Browse files Browse the repository at this point in the history
  • Loading branch information
gfgtdf committed Mar 2, 2015
1 parent 435accc commit d35e2a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/replay.cpp
Expand Up @@ -1026,7 +1026,7 @@ static std::map<int, config> get_user_choice_internal(const std::string &name, c

const config *action = get_replay_source().get_next_action();
assert(action); //action cannot be null because get_replay_source().at_end() returned false.
if( !action->has_child(name))
if( !action->has_child(name) || !(*action)["dependent"].to_bool())
{
replay::process_error("[" + name + "] expected but none found\n. found instead:\n" + action->debug());
//We save this action for later
Expand Down

0 comments on commit d35e2a6

Please sign in to comment.