From e59630f2022059add2723949fbe38d7ae000bd43 Mon Sep 17 00:00:00 2001 From: Catobat <69204835+Catobat@users.noreply.github.com> Date: Mon, 24 Apr 2023 16:31:06 +0200 Subject: Fix dungeon item mixup --- src/script.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/script.c') diff --git a/src/script.c b/src/script.c index 1f14de5f..91bc5e95 100644 --- a/src/script.c +++ b/src/script.c @@ -721,17 +721,17 @@ void ScriptCommand_CheckInventory1(Entity* entity, ScriptExecutionContext* conte u32 tmp; u32 tmp2 = GetNextScriptCommandHalfwordAfterCommandMetadata(context->scriptInstructionPointer); switch (tmp2) { - case 0x53: - tmp = HasDungeonMap(); - break; - case 0x52: - tmp = HasDungeonCompass(); + case ITEM_SMALL_KEY: + tmp = HasDungeonSmallKey(); break; - case 0x51: + case ITEM_BIG_KEY: tmp = HasDungeonBigKey(); break; - case 0x50: - tmp = HasDungeonSmallKey(); + case ITEM_COMPASS: + tmp = HasDungeonCompass(); + break; + case ITEM_DUNGEON_MAP: + tmp = HasDungeonMap(); break; default: tmp = GetInventoryValue(tmp2); -- cgit v1.2.3