diff options
author | Rangi <remy.oukaour+rangi42@gmail.com> | 2021-03-15 15:40:50 -0400 |
---|---|---|
committer | Rangi <remy.oukaour+rangi42@gmail.com> | 2021-03-15 15:40:50 -0400 |
commit | 591132ace59d59ec8416ada2f1b386c0af2eb6e2 (patch) | |
tree | b5696be22818c98de2167f50e4a6cef5179e6e23 | |
parent | 48e6bed93afcde45a29d7cfd3d5dd353cf08f04a (diff) |
$11 = wTempMonStructEnd - wTempMonLevel
-rw-r--r-- | engine/battle/core.asm | 4 | ||||
-rw-r--r-- | engine/overworld/scripting.asm | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/engine/battle/core.asm b/engine/battle/core.asm index 728fa9f4..063383bf 100644 --- a/engine/battle/core.asm +++ b/engine/battle/core.asm @@ -4424,8 +4424,8 @@ PrintPlayerHUD: ld [de], a ld hl, wBattleMonLevel ld de, wTempMonLevel - ld bc, $11 - call CopyBytes + ld bc, wTempMonStructEnd - wTempMonLevel + call CopyBytes ; battle_struct and party_struct end with the same data ld a, [wCurBattleMon] ld hl, wPartyMon1Species call GetPartyLocation diff --git a/engine/overworld/scripting.asm b/engine/overworld/scripting.asm index 631ee418..50ebbb04 100644 --- a/engine/overworld/scripting.asm +++ b/engine/overworld/scripting.asm @@ -138,7 +138,7 @@ ScriptCommandTable: dw Script_opentext ; 47 dw Script_refreshscreen ; 48 dw Script_closetext ; 49 - dw Script_writeunusedbyte ; 4a + dw Script_writeunusedbyte ; 4a dw Script_farwritetext ; 4b dw Script_writetext ; 4c dw Script_repeattext ; 4d |