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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

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