Jelajahi Sumber

Fix for exitDoorPos bug

Maxime Chevalier-Boisvert 7 tahun lalu
induk
melakukan
494b832acd
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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: