summaryrefslogtreecommitdiff
path: root/src/scrcmd.c
diff options
context:
space:
mode:
authorDiegoisawesome <diego@domoreaweso.me>2018-10-16 21:47:08 -0500
committerDiegoisawesome <diego@domoreaweso.me>2018-10-16 21:47:08 -0500
commite75f0b4f80670bd3b6a28257f10770911869ea08 (patch)
treed22ea566cd8e0fd4b8abd5b4dd36c339f98fea85 /src/scrcmd.c
parented1bb3030bae8b0d00a1fbb68ebd50f6376938ac (diff)
Port/decompile field_control_avatar
Diffstat (limited to 'src/scrcmd.c')
-rw-r--r--src/scrcmd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/scrcmd.c b/src/scrcmd.c
index acaf78576..fa3e21996 100644
--- a/src/scrcmd.c
+++ b/src/scrcmd.c
@@ -52,7 +52,7 @@
typedef u16 (*SpecialFunc)(void);
typedef void (*NativeFunc)(void);
-extern u32 gUnknown_020375C0;
+extern const u8 *gUnknown_020375C0;
static EWRAM_DATA u32 gUnknown_020375C4 = 0;
static EWRAM_DATA u16 sPauseCounter = 0;
@@ -284,7 +284,7 @@ bool8 ScrCmd_callstd_if(struct ScriptContext *ctx)
bool8 ScrCmd_gotoram(struct ScriptContext *ctx)
{
- ScriptJump(ctx, (const u8 *)gUnknown_020375C0);
+ ScriptJump(ctx, gUnknown_020375C0);
return FALSE;
}
@@ -2223,7 +2223,7 @@ bool8 ScrCmd_cmdCF(struct ScriptContext *ctx)
if (v1)
{
- ((u8*)gUnknown_020375C0) = ctx->scriptPtr;
+ gUnknown_020375C0 = ctx->scriptPtr;
ScriptJump(ctx, v1);
}
return FALSE;