Update task.c
This commit is contained in:
parent
8297090267
commit
7134763b73
1 changed files with 1 additions and 1 deletions
|
@ -198,7 +198,7 @@ void SetWordTaskArg(u8 taskId, u8 dataElem, u32 value)
|
||||||
u32 GetWordTaskArg(u8 taskId, u8 dataElem)
|
u32 GetWordTaskArg(u8 taskId, u8 dataElem)
|
||||||
{
|
{
|
||||||
if (dataElem < NUM_TASK_DATA - 1)
|
if (dataElem < NUM_TASK_DATA - 1)
|
||||||
return (u16)gTasks[taskId].data[dataElem] | (gTasks[taskId].data[dataElem + 1] << 16); // Merge the two adjacent indexes back
|
return (u16)gTasks[taskId].data[dataElem] | (gTasks[taskId].data[dataElem + 1] << 16);
|
||||||
else
|
else
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue