mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-12 03:02:30 +00:00
chore(model): clarify logic in callback load list traversal
This commit is contained in:
parent
767e6bfe6e
commit
da1bc52be4
1 changed files with 4 additions and 2 deletions
|
|
@ -271,8 +271,10 @@ int32_t CM2Shared::FinishLoadingSkinProfile(uint32_t size) {
|
||||||
|
|
||||||
this->m_skinProfileLoaded = 1;
|
this->m_skinProfileLoaded = 1;
|
||||||
|
|
||||||
while (this->m_callbackList) {
|
for (auto model = this->m_callbackList; model; model = this->m_callbackList) {
|
||||||
CM2Model* model = this->m_callbackList;
|
STORM_ASSERT(model->m_callbackPrev);
|
||||||
|
STORM_ASSERT(*model->m_callbackPrev == this->m_callbackList);
|
||||||
|
|
||||||
model->UnlinkFromCallbackList();
|
model->UnlinkFromCallbackList();
|
||||||
model->InitializeLoaded();
|
model->InitializeLoaded();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue