mirror of https://github.com/zeldaret/botw.git
lib: Update sead
This commit is contained in:
parent
52c4ba1fc0
commit
2fef4f821e
2
lib/sead
2
lib/sead
|
|
@ -1 +1 @@
|
|||
Subproject commit fb5b8c490f2ae4393a43c972a69f9c3c11907915
|
||||
Subproject commit a60ec7d32c3d173bf1ff9629f721acc55ff7f9de
|
||||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue