summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIIMarckus <iimarckus@gmail.com>2012-02-21 23:12:03 -0700
committerIIMarckus <iimarckus@gmail.com>2012-02-21 23:12:03 -0700
commitbd66a78c0326860ee45a9de8c9f1509284eb206e (patch)
treed1fc347d5e853e7e56423a773eaf47f4e6532e1f
parent81adc69e6583a0b77e39b92754704eb0e338d090 (diff)
Restrict an argument to 8 bits. Fixes the build on some architectures.
hg-commit-id: e66818b266cf
-rw-r--r--main.asm2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.asm b/main.asm
index b15e04bd..230bd1f1 100644
--- a/main.asm
+++ b/main.asm
@@ -17111,7 +17111,7 @@ ItemUsePokeflute: ; 6140
.inBattle\@
xor a
ld [$cd3d],a ; initialize variable that indicates if any pokemon were woken up to zero
- ld b,~SLP
+ ld b,~SLP & $FF
ld hl,W_PARTYMON1_STATUS
call WakeUpEntireParty
ld a,[W_ISINBATTLE]