diff options
author | GriffinR <griffin.g.richards@gmail.com> | 2020-08-28 15:54:15 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-28 15:54:15 -0400 |
commit | eb4bcc89cd149ae1a5e43f2aef0dddf5a69bb23c (patch) | |
tree | 7f1edf6037ad77a2bcb10a237fac0e3348591bfc /src/script.c | |
parent | 1e6655b2987922d0b8d6a4833549bc060b764968 (diff) | |
parent | a04b0ff487dfdf97d3dbe61602bc7bc914c6dbb2 (diff) |
Merge pull request #1155 from PokeCodec/zero
Fix "stupid" fakematch
Diffstat (limited to 'src/script.c')
-rw-r--r-- | src/script.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/script.c b/src/script.c index 9ba1a7429..889c25765 100644 --- a/src/script.c +++ b/src/script.c @@ -26,9 +26,9 @@ void InitScriptContext(struct ScriptContext *ctx, void *cmdTable, void *cmdTable s32 i; ctx->mode = 0; - ctx->scriptPtr = 0; + ctx->scriptPtr = NULL; ctx->stackDepth = 0; - ctx->nativePtr = 0; + ctx->nativePtr = NULL; ctx->cmdTable = cmdTable; ctx->cmdTableEnd = cmdTableEnd; @@ -55,7 +55,7 @@ void SetupNativeScript(struct ScriptContext *ctx, bool8 (*ptr)(void)) void StopScript(struct ScriptContext *ctx) { ctx->mode = 0; - ctx->scriptPtr = 0; + ctx->scriptPtr = NULL; } bool8 RunScriptCommand(struct ScriptContext *ctx) |