From b4a8c4a00c68bd3a500be192d4670fa5a5772883 Mon Sep 17 00:00:00 2001 From: Uladzislau Nikalayevich Date: Thu, 26 Sep 2024 19:33:16 +0300 Subject: [PATCH] Fix typo --- Client/mods/deathmatch/logic/CClientModelManager.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Client/mods/deathmatch/logic/CClientModelManager.cpp b/Client/mods/deathmatch/logic/CClientModelManager.cpp index 496310827e..36c601b544 100644 --- a/Client/mods/deathmatch/logic/CClientModelManager.cpp +++ b/Client/mods/deathmatch/logic/CClientModelManager.cpp @@ -49,9 +49,9 @@ bool CClientModelManager::Remove(const std::shared_ptr& pModel) int modelId = pModel->GetModelID(); if (m_Models[modelId] != nullptr) { - CResource* perentResource = m_Models[modelId]->GetParentResource(); - if (perentResource) - perentResource->GetResourceModelStreamer()->FullyReleaseModel(modelId); + CResource* parentResource = m_Models[modelId]->GetParentResource(); + if (parentResource) + parentResource->GetResourceModelStreamer()->FullyReleaseModel(modelId); m_Models[modelId]->RestoreEntitiesUsingThisModel(); m_Models[modelId] = nullptr; m_modelCount--;