MultiServer: fix crash when hint_location hits a location that can exist, but did not exist in this multiworld.

This commit is contained in:
Fabian Dill 2022-03-31 04:54:35 +02:00 committed by KonoTyran
parent c471a70b35
commit 0db1660369
1 changed files with 1 additions and 1 deletions

View File

@ -851,7 +851,7 @@ def collect_hint_location_name(ctx: Context, team: int, slot: int, location: str
def collect_hint_location_id(ctx: Context, team: int, slot: int, seeked_location: int) -> typing.List[NetUtils.Hint]:
result = ctx.locations[slot].get(seeked_location, (None, None, None))
if result:
if any(result):
item_id, receiving_player, item_flags = result
found = seeked_location in ctx.location_checks[team, slot]