Skip to content

Commit 6ad33bb

Browse files
authored
LADX: Fix hints crash (#2050)
1 parent 7b8f891 commit 6ad33bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

worlds/ladx/LADXR/generator.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ def generateRom(args, settings, ap_settings, auth, seed_name, logic, rnd=None, m
247247
# USEFUL_HINT = 1.0
248248
# TODO: filter events, filter unshuffled keys
249249
all_items = multiworld.get_items()
250-
our_items = [item for item in all_items if item.player == player_id and item.code is not None and item.location.show_in_spoiler]
250+
our_items = [item for item in all_items if item.player == player_id and item.location and item.code is not None and item.location.show_in_spoiler]
251251
our_useful_items = [item for item in our_items if ItemClassification.progression in item.classification]
252252
def gen_hint():
253253
chance = rnd.uniform(0, 1)

0 commit comments

Comments
 (0)