mirror of
https://github.com/zeldaret/botw
synced 2026-05-26 07:38:50 -04:00
lib: Update sead
This commit is contained in:
+1
-1
Submodule lib/sead updated: fb5b8c490f...a60ec7d32c
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user