cmd_table -> cmdTable

This commit is contained in:
Adrienn Tindall 2022-12-07 22:17:31 -05:00
parent bfad7efc91
commit c89abdf983
2 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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;
}