From c89abdf983bf12e8d73b2988bd7a0fdc9dedb0d5 Mon Sep 17 00:00:00 2001 From: Adrienn Tindall <33725376+adrienntindall@users.noreply.github.com> Date: Wed, 7 Dec 2022 22:17:31 -0500 Subject: [PATCH] cmd_table -> cmdTable --- include/script.h | 2 +- src/script.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/script.h b/include/script.h index e4418beae..1834dc7c6 100644 --- a/include/script.h +++ b/include/script.h @@ -317,7 +317,7 @@ struct SCRIPTCONTEXT { ScrCmdFunc native_ptr; const u8 *script_ptr; const u8 *stack[20]; - const ScrCmdFunc *cmd_table; + const ScrCmdFunc *cmdTable; u32 cmd_count; u32 data[4]; TaskManager *taskman; diff --git a/src/script.c b/src/script.c index bd2782ac6..e74d0669a 100644 --- a/src/script.c +++ b/src/script.c @@ -8,7 +8,7 @@ void InitScriptContext(SCRIPTCONTEXT* ctx, const ScrCmdFunc* cmd_table, u32 cmd_ ctx->stackDepth = 0; ctx->id = 0; ctx->native_ptr = NULL; - ctx->cmd_table = cmd_table; + ctx->cmdTable = cmd_table; ctx->cmd_count = cmd_count; for (i = 0; i < NELEMS(ctx->data); i++) { @@ -79,7 +79,7 @@ BOOL RunScriptCommand(SCRIPTCONTEXT* ctx) { return FALSE; } - ScrCmdFunc cmd = ctx->cmd_table[cmd_code]; + ScrCmdFunc cmd = ctx->cmdTable[cmd_code]; if ((*cmd)(ctx) == TRUE) { break; }