From 9b24c8c4784232adaaa9e23b073e46857e64311c Mon Sep 17 00:00:00 2001
From: "Egli Adrian (IT-SCI-API-PFI)" <adrian.egli@sbb.ch>
Date: Fri, 23 Aug 2019 11:19:52 +0200
Subject: [PATCH] bug fix

---
 flatland/envs/generators.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/flatland/envs/generators.py b/flatland/envs/generators.py
index bfcfdf71..0b3f3eb0 100644
--- a/flatland/envs/generators.py
+++ b/flatland/envs/generators.py
@@ -923,7 +923,7 @@ def realistic_rail_generator(nr_start_goal=1, seed=0, add_max_dead_end=4, goals_
             agents_targets.pop(t)
             agents_target.append((tp[0], tp[1]))
 
-            if len(agents_position) == 0:
+            if len(agents_positions) == 0:
                 print("no more position left")
                 break
 
-- 
GitLab