diff options
| author | Rangi <remy.oukaour+rangi42@gmail.com> | 2021-05-23 22:09:02 -0400 |
|---|---|---|
| committer | Rangi <remy.oukaour+rangi42@gmail.com> | 2021-05-23 22:09:02 -0400 |
| commit | 346ce9454aac5ed9bd000d637f146b31f5a6f29d (patch) | |
| tree | 6e2224dd76e2c28df9bba82765a6dec580b60b41 /engine/items | |
| parent | Fix end_nybble_array (diff) | |
| download | pokeyellow-346ce9454aac5ed9bd000d637f146b31f5a6f29d.tar.gz pokeyellow-346ce9454aac5ed9bd000d637f146b31f5a6f29d.tar.xz pokeyellow-346ce9454aac5ed9bd000d637f146b31f5a6f29d.zip | |
Use macros for bit arrays
Diffstat (limited to 'engine/items')
| -rw-r--r-- | engine/items/item_effects.asm | 3 |
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 |
