diff options
author | Rangi <remy.oukaour+rangi42@gmail.com> | 2020-07-07 11:10:29 -0400 |
---|---|---|
committer | Rangi <remy.oukaour+rangi42@gmail.com> | 2020-07-07 11:10:29 -0400 |
commit | 45ed05decf330faab4503fe8fecadc54698c9724 (patch) | |
tree | add3eeda2d09334209abe4e55341b674e64dd117 /engine/items | |
parent | bbc257476f9aac8d04d75a8036d412caa8f7d515 (diff) |
Use HIGH() and LOW()
Diffstat (limited to 'engine/items')
-rw-r--r-- | engine/items/inventory.asm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/items/inventory.asm b/engine/items/inventory.asm index 7ce61cb9..bf433175 100644 --- a/engine/items/inventory.asm +++ b/engine/items/inventory.asm @@ -12,10 +12,10 @@ AddItemToInventory_:: push hl push hl ld d, PC_ITEM_CAPACITY ; how many items the PC can hold - ld a, wNumBagItems & $FF + ld a, LOW(wNumBagItems) cp l jr nz, .checkIfInventoryFull - ld a, wNumBagItems >> 8 + ld a, HIGH(wNumBagItems) cp h jr nz, .checkIfInventoryFull ; if the destination is the bag |