mirror of
https://github.com/pret/pokeheartgold.git
synced 2024-12-03 18:50:44 +00:00
cmd_table -> cmdTable
This commit is contained in:
parent
bfad7efc91
commit
c89abdf983
@ -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;
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user