summaryrefslogtreecommitdiff
path: root/macros.asm
diff options
context:
space:
mode:
Diffstat (limited to 'macros.asm')
-rw-r--r--macros.asm2
1 files changed, 1 insertions, 1 deletions
diff --git a/macros.asm b/macros.asm
index 11f0f37b..62fd4b53 100644
--- a/macros.asm
+++ b/macros.asm
@@ -428,7 +428,7 @@ event_fill_count = 1 + event_fill_count
ELSE
IF ((\2) % 8) != 7
ld a, [wEventFlags + event_end_byte]
- and ~((1 << (((\2) % 8) + 1)) - 1) $ ff
+ and ~((1 << (((\2) % 8) + 1)) - 1) & $ff
ld [wEventFlags + event_end_byte], a
ENDC
ENDC