summaryrefslogtreecommitdiff
path: root/src/script.c
diff options
context:
space:
mode:
authorGriffinR <griffin.g.richards@gmail.com>2020-08-28 15:54:15 -0400
committerGitHub <noreply@github.com>2020-08-28 15:54:15 -0400
commiteb4bcc89cd149ae1a5e43f2aef0dddf5a69bb23c (patch)
tree7f1edf6037ad77a2bcb10a237fac0e3348591bfc /src/script.c
parent1e6655b2987922d0b8d6a4833549bc060b764968 (diff)
parenta04b0ff487dfdf97d3dbe61602bc7bc914c6dbb2 (diff)
Merge pull request #1155 from PokeCodec/zero
Fix "stupid" fakematch
Diffstat (limited to 'src/script.c')
-rw-r--r--src/script.c6
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)