summaryrefslogtreecommitdiff
path: root/src/script.c
diff options
context:
space:
mode:
authorCatobat <69204835+Catobat@users.noreply.github.com>2023-04-24 16:31:06 +0200
committerCatobat <69204835+Catobat@users.noreply.github.com>2023-04-24 16:31:06 +0200
commite59630f2022059add2723949fbe38d7ae000bd43 (patch)
tree4f67fcae7543626bfada8ea34958e07cb990e658 /src/script.c
parent7e4466f92831c1ad1ced59d14f0347d02f561a5e (diff)
Fix dungeon item mixup
Diffstat (limited to 'src/script.c')
-rw-r--r--src/script.c16
1 files changed, 8 insertions, 8 deletions
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);