summaryrefslogtreecommitdiff
path: root/src/mystery_event_script.c
diff options
context:
space:
mode:
authorMarcus Huderle <huderlem@gmail.com>2018-04-09 11:14:37 -0700
committerGitHub <noreply@github.com>2018-04-09 11:14:37 -0700
commit84c5825c8ecc9804313ec3b1a8dcc0271ee4c2cc (patch)
treec90f705e43f2b1728ed1e0400312b7d6c5c81c21 /src/mystery_event_script.c
parent562dcc4bcdc14d5b6c0bb2a638410156945cdd41 (diff)
parent91f869d1e6ed1ef12ad4b2255d3762e3b1b51429 (diff)
Merge pull request #589 from PikalaxALT/unk_debug_menu_3
Unk Debug Menu 3 and Start Menu Debug
Diffstat (limited to 'src/mystery_event_script.c')
-rw-r--r--src/mystery_event_script.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mystery_event_script.c b/src/mystery_event_script.c
index 6fcad66ac..58f7f8627 100644
--- a/src/mystery_event_script.c
+++ b/src/mystery_event_script.c
@@ -114,8 +114,9 @@ static void SetWord(u8 *ptr, u32 val)
ptr[3] = val >> 24;
}
-bool8 unref_sub_81261B4(u8 *a1, int a2)
+bool8 debug_sub_81261B4(u8 *a1, const u8 * _a2)
{
+ int a2 = (int)_a2;
if (a1[0x0] == 1 && a1[0x11] == 15 && !GetWord(a1 + 0x12))
{
int v4 = GetWord(a1 + 0x16) - a2 + (int)a1;
@@ -128,8 +129,9 @@ bool8 unref_sub_81261B4(u8 *a1, int a2)
return FALSE;
}
-bool8 unref_sub_812620C(u8 *a1, int a2)
+bool8 debug_sub_812620C(u8 *a1, const u8 * _a2)
{
+ int a2 = (int)_a2;
if (a1[0x0] == 1 && a1[0x11] == 16 && !GetWord(a1 + 0x12))
{
int v4 = GetWord(a1 + 0x16) - a2 + (int)a1;