Commit 59e547f7 authored by Amelie Royer's avatar Amelie Royer

minor corrections

parent 9dacd9d1
......@@ -267,7 +267,7 @@ void Recomodel::load_transitions(std::string tfile, bool precision /* =false */,
assert(("Unfeasible transition with >0 probability", link < n_actions));
if (is_mdp) {
transition_matrix[index(0, s1, a - 1, link)] = v;
} else {
} else if (profiles_found >= 0) {
transition_matrix[index(profiles_found, s1, a - 1, link)] = v;
}
transitions_found++;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment