diff options
| author | Léo Lam <leo@leolam.fr> | 2021-05-09 15:02:03 +0200 |
|---|---|---|
| committer | Léo Lam <leo@leolam.fr> | 2021-05-09 15:09:39 +0200 |
| commit | 2fef4f821eea3080017ae5229eb50b8daf020c71 (patch) | |
| tree | 8eca19c639c193aef9e8bd81ad4648b8bf359936 /src/KingSystem/Utils/Thread | |
| parent | 52c4ba1fc02a44f3ba27617444a70c5bd564f47b (diff) | |
lib: Update sead
Diffstat (limited to 'src/KingSystem/Utils/Thread')
| -rw-r--r-- | src/KingSystem/Utils/Thread/TaskMgr.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/KingSystem/Utils/Thread/TaskMgr.h b/src/KingSystem/Utils/Thread/TaskMgr.h index a6cc2960..4c8fa131 100644 --- a/src/KingSystem/Utils/Thread/TaskMgr.h +++ b/src/KingSystem/Utils/Thread/TaskMgr.h @@ -50,9 +50,7 @@ public: void initAndCheckType(s32 num_tasks, sead::Heap* heap) { initImpl_<TaskType>(num_tasks, heap); if (hasTasks()) { - Task* task = nullptr; - if (mFreeTaskLists[0].size() >= 1) - task = mFreeTaskLists[0].front(); + Task* task = mFreeTaskLists[0].front(); const bool is_derived_from_managed_task = sead::IsDerivedFrom<ManagedTask>(task); SEAD_ASSERT(is_derived_from_managed_task); } |
