Skip to content

Commit

Permalink
Adventure: Fix iterable copy error when freeincarnate_max is tuned low (
Browse files Browse the repository at this point in the history
  • Loading branch information
JusticePS authored and EmilyV99 committed Apr 15, 2024
1 parent 42cb4b0 commit 4638511
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion worlds/adventure/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ def pre_fill(self):
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)
Expand Down

0 comments on commit 4638511

Please sign in to comment.