diff --git a/flatland/envs/rail_env.py b/flatland/envs/rail_env.py index 6b3721accf214ab1bb17a1c393c2e0e571275250..40d832d96ee932e5fcde950971573e078fabd841 100644 --- a/flatland/envs/rail_env.py +++ b/flatland/envs/rail_env.py @@ -422,6 +422,7 @@ class RailEnv(Environment): if agent.malfunction_data['malfunction'] < 1 and agent.malfunction_data['next_malfunction'] < 1: # Increase number of malfunctions agent.malfunction_data['nr_malfunctions'] += 1 + agent.malfunction_data['fixed'] = False # Next malfunction in number of stops next_breakdown = int(