diff options
author | camthesaxman <cameronghall@cox.net> | 2017-09-09 18:17:09 -0500 |
---|---|---|
committer | camthesaxman <cameronghall@cox.net> | 2017-09-09 18:17:09 -0500 |
commit | 95f856c39e81e2b723065e757b4dcf577441c558 (patch) | |
tree | 8719c33bfeac0e6b26e5b88788da6f3b30ae7e38 /src/script.c | |
parent | aa659fe8dd0abae6632cb4940d7e56684b84d8be (diff) |
more script_menu refactoring
Diffstat (limited to 'src/script.c')
-rw-r--r-- | src/script.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/script.c b/src/script.c index 8f12da437..18abb6e84 100644 --- a/src/script.c +++ b/src/script.c @@ -40,7 +40,7 @@ u8 SetupBytecodeScript(struct ScriptContext *ctx, const u8 *ptr) return 1; } -void SetupNativeScript(struct ScriptContext *ctx, void *ptr) +void SetupNativeScript(struct ScriptContext *ctx, NativeScriptFunc ptr) { ctx->mode = 2; ctx->nativePtr = ptr; @@ -64,7 +64,7 @@ u8 RunScriptCommand(struct ScriptContext *ctx) case 2: if (ctx->nativePtr) { - if (ctx->nativePtr() == 1) + if (ctx->nativePtr() == TRUE) ctx->mode = 1; return 1; } |