mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-04-16 10:04:42 +03:00
chore(model): clarify logic in callback load list traversal
This commit is contained in:
parent
767e6bfe6e
commit
da1bc52be4
@ -271,8 +271,10 @@ int32_t CM2Shared::FinishLoadingSkinProfile(uint32_t size) {
|
||||
|
||||
this->m_skinProfileLoaded = 1;
|
||||
|
||||
while (this->m_callbackList) {
|
||||
CM2Model* model = this->m_callbackList;
|
||||
for (auto model = this->m_callbackList; model; model = this->m_callbackList) {
|
||||
STORM_ASSERT(model->m_callbackPrev);
|
||||
STORM_ASSERT(*model->m_callbackPrev == this->m_callbackList);
|
||||
|
||||
model->UnlinkFromCallbackList();
|
||||
model->InitializeLoaded();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user