diff options
author | N <71219152+PokeCodec@users.noreply.github.com> | 2021-01-19 13:47:09 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-19 13:47:09 -0500 |
commit | d720520de8cce7acdf2b0abf7d21c5ca94c7f921 (patch) | |
tree | 89217999d3440b4cbecb7d0f9eb73cf7df823ee0 /src/task.c | |
parent | b6c483394e11a27e9146a62cfd79a19c7260fe61 (diff) |
Clarified comment again
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 7787dc786..be7eb8bc0 100644 --- a/src/task.c +++ b/src/task.c @@ -35,7 +35,7 @@ u8 CreateTask(TaskFunc func, u8 priority) gTasks[i].func = func; gTasks[i].priority = priority; InsertTask(i); - memset(gTasks[i].data, 0, sizeof(gTasks[i].data)); + gTasks[i].data = { 0 }; gTasks[i].isActive = TRUE; return i; } @@ -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); // So we can store followupFunc as two half-words in the data array. + gTasks[taskId].data[followupFuncIndex + 1] = (s16)((u32)followupFunc >> 16); // Store followupFunc as two half-words in the data array. gTasks[taskId].func = func; } |