summaryrefslogtreecommitdiff
path: root/engine/items
diff options
context:
space:
mode:
Diffstat (limited to 'engine/items')
-rw-r--r--engine/items/item_effects.asm3
1 files changed, 2 insertions, 1 deletions
diff --git a/engine/items/item_effects.asm b/engine/items/item_effects.asm
index 38ea37c0..915d4930 100644
--- a/engine/items/item_effects.asm
+++ b/engine/items/item_effects.asm
@@ -2614,9 +2614,10 @@ IsKeyItem_::
jr nc, .checkIfItemIsHM
; if the item is not an HM or TM
push af
- ld hl, KeyItemBitfield
+ ld hl, KeyItemFlags
ld de, wBuffer
ld bc, 15 ; only 11 bytes are actually used
+ assert 15 >= (NUM_ITEMS + 7) / 8
call CopyData
pop af
dec a