From d708372ea9fc91d8931892425aa786edbdf5a463 Mon Sep 17 00:00:00 2001 From: YamaArashi Date: Tue, 1 Nov 2016 12:13:12 -0700 Subject: [PATCH] formatting --- src/task.c | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/src/task.c b/src/task.c index 160e4dbff..f84c83e80 100644 --- a/src/task.c +++ b/src/task.c @@ -296,18 +296,17 @@ u8 GetTaskCount() void SetWordTaskArg(u8 taskId, u8 dataElem, u32 value) { - if (dataElem <= 0xE) - { - gTasks[taskId].data[dataElem] = value; - gTasks[taskId].data[dataElem + 1] = value >> 16; - } - return; + if (dataElem <= 14) + { + gTasks[taskId].data[dataElem] = value; + gTasks[taskId].data[dataElem + 1] = value >> 16; + } } u32 GetWordTaskArg(u8 taskId, u8 dataElem) { - if (dataElem <= 0xE) - return (u16)gTasks[taskId].data[dataElem] | (gTasks[taskId].data[dataElem + 1] << 16); - else - return 0; + if (dataElem <= 0xE) + return (u16)gTasks[taskId].data[dataElem] | (gTasks[taskId].data[dataElem + 1] << 16); + else + return 0; }