From 767e6bfe6e33359dcffd8d33b26ed5fa95b6df98 Mon Sep 17 00:00:00 2001 From: fallenoak Date: Tue, 21 Feb 2023 12:55:47 -0600 Subject: [PATCH] feat(model): implement guard condition in CM2Shared::CallbackWhenLoaded --- src/model/CM2Shared.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/model/CM2Shared.cpp b/src/model/CM2Shared.cpp index 92a1ba2..36606cc 100644 --- a/src/model/CM2Shared.cpp +++ b/src/model/CM2Shared.cpp @@ -57,10 +57,9 @@ void CM2Shared::AddRef() { } int32_t CM2Shared::CallbackWhenLoaded(CM2Model* model) { - // TODO - // if (model->dword4 & 0x20) { - // return 1; - // } + if (model->m_flags & 0x20) { + return 1; + } if (this->m_m2DataLoaded && this->m_skinProfileLoaded) { model->InitializeLoaded();