Browse Source

Fix for exitDoorPos bug

Maxime Chevalier-Boisvert 7 years ago
parent
commit
494b832acd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      gym_minigrid/envs/simple_envs.py

+ 1 - 1
gym_minigrid/envs/simple_envs.py

@@ -183,7 +183,7 @@ class MultiRoomEnv(MiniGridEnv):
                 prevDoorColor = doorColor
 
                 prevRoom = roomList[idx-1]
-                prevRoom.exitDoorPos = entryDoorPos
+                prevRoom.exitDoorPos = room.entryDoorPos
 
         # Place the final goal
         while True: