From 96864be59dd7dafadfd713a1c5260384344499df Mon Sep 17 00:00:00 2001 From: Lukas Krickl Date: Sat, 17 Jan 2026 08:49:48 +0100 Subject: [PATCH] macros: fixed itemdef macro --- src/item.s | 2 +- src/macros.inc | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/item.s b/src/item.s index b2fcc7f..ce36576 100644 --- a/src/item.s +++ b/src/item.s @@ -8,4 +8,4 @@ items_ring: dw null_item null_item: - itemdef 0, 0, 0, ITEM_ATTR_STR, 0, 0 + itemdef 0, 0, 0, ITEM_ATTR_STR, 0, 0, NULL diff --git a/src/macros.inc b/src/macros.inc index 91c22d6..0b0e075 100644 --- a/src/macros.inc +++ b/src/macros.inc @@ -228,13 +228,13 @@ $1: ; $1: type ; $2: flags ; $3: damage - ; $5: proficency attribute - ; $6: proficency attribute value - ; $7: damage type - ; $8: attribute ptr (may be NULL) + ; $4: proficency attribute + ; $5: proficency attribute value + ; $6: damage type + ; $7: attribute ptr (may be NULL) #macro itemdef - .db $1, $2, $3, $4, $5 - dw $6 + .db $1, $2, $3, $4, $5, $6 + dw $7 #endmacro ; defines an overlay sprite -- 2.30.2