summaryrefslogtreecommitdiff
path: root/audio/engine.asm
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2020-03-21 14:01:05 -0400
committerRangi <remy.oukaour+rangi42@gmail.com>2020-03-21 14:01:05 -0400
commit6a6ba10315baf4b0092c6d952a2f0cb502b6ac8e (patch)
tree5a32545646f9214cd7674320495cc3e8c6929875 /audio/engine.asm
parent5a5f5ececdde2c4c62bdee649d8b1d3edba96fed (diff)
rgbds supports 'X - 1' instead of 'X + -1'
Diffstat (limited to 'audio/engine.asm')
-rw-r--r--audio/engine.asm2
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/engine.asm b/audio/engine.asm
index 50ce3104d..645c121a8 100644
--- a/audio/engine.asm
+++ b/audio/engine.asm
@@ -1294,7 +1294,7 @@ GetNoiseSample:
; load ptr to sample header in wNoiseSampleAddress
; are we on the last channel?
ld a, [wCurChannel]
- and NUM_MUSIC_CHANS + -1
+ and NUM_MUSIC_CHANS - 1
cp CHAN4
; ret if not
ret nz