Adventure: Fix iterable copy error when freeincarnate_max is tuned low (#2774)

This commit is contained in:
JusticePS
2024-01-29 09:37:55 -08:00
committed by GitHub
parent b4212d1c3e
commit 0bc9966d6f

View File

@@ -271,7 +271,7 @@ class AdventureWorld(World):
overworld_locations_copy = overworld.locations.copy()
all_locations = self.multiworld.get_locations(self.player)
locations_copy = all_locations.copy()
locations_copy = list(all_locations)
for loc in all_locations:
if loc.item is not None or loc.progress_type != LocationProgressType.DEFAULT:
locations_copy.remove(loc)