diff options
author | N <71219152+PokeCodec@users.noreply.github.com> | 2021-01-17 12:49:50 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-17 12:49:50 -0500 |
commit | 82970902679a7d14f7d252fc16e51a789eaf64ae (patch) | |
tree | aa5a8ca0cd1de594981918bf192cc5f2ce42c097 /src/task.c | |
parent | ad6ab09e30a9c0d8efdf83608966e125046d2dcd (diff) |
Update task.c
Diffstat (limited to 'src/task.c')
-rw-r--r-- | src/task.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/task.c b/src/task.c index f3b696545..e2e905719 100644 --- a/src/task.c +++ b/src/task.c @@ -141,7 +141,7 @@ void SetTaskFuncWithFollowupFunc(u8 taskId, TaskFunc func, TaskFunc followupFunc u8 followupFuncIndex = NUM_TASK_DATA - 2; // Should be const. gTasks[taskId].data[followupFuncIndex] = (s16)((u32)followupFunc); - gTasks[taskId].data[followupFuncIndex + 1] = (s16)((u32)followupFunc >> 16); + gTasks[taskId].data[followupFuncIndex + 1] = (s16)((u32)followupFunc >> 16); // So we can store the followupFunc in two adjacent indexes. gTasks[taskId].func = func; } @@ -198,7 +198,7 @@ void SetWordTaskArg(u8 taskId, u8 dataElem, u32 value) u32 GetWordTaskArg(u8 taskId, u8 dataElem) { if (dataElem < NUM_TASK_DATA - 1) - return (u16)gTasks[taskId].data[dataElem] | (gTasks[taskId].data[dataElem + 1] << 16); + return (u16)gTasks[taskId].data[dataElem] | (gTasks[taskId].data[dataElem + 1] << 16); // Merge the two adjacent indexes back else return 0; } |