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/ActorSystem/actBaseProcJob.cpp | |
| parent | 52c4ba1fc02a44f3ba27617444a70c5bd564f47b (diff) | |
lib: Update sead
Diffstat (limited to 'src/KingSystem/ActorSystem/actBaseProcJob.cpp')
| -rw-r--r-- | src/KingSystem/ActorSystem/actBaseProcJob.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/KingSystem/ActorSystem/actBaseProcJob.cpp b/src/KingSystem/ActorSystem/actBaseProcJob.cpp index 1c64e5ee..71a969da 100644 --- a/src/KingSystem/ActorSystem/actBaseProcJob.cpp +++ b/src/KingSystem/ActorSystem/actBaseProcJob.cpp @@ -12,7 +12,7 @@ BaseProcJobLink::BaseProcJobLink(BaseProc* proc, u8 priority) sead::TListNode<BaseProc*>* BaseProcJobList::front() const { for (const auto& list : lists) { - if (list.size() >= 1 && list.front()) + if (list.front()) return list.front(); } return nullptr; @@ -23,7 +23,7 @@ sead::TListNode<BaseProc*>* BaseProcJobList::next(BaseProcJobLink* link) const { return next; for (int i = (link->getPriority2() >> 1) + 1; i < lists.size(); ++i) { - if (lists[i].size() >= 1 && lists[i].front()) + if (lists[i].front()) return lists[i].front(); } |
