Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
TheNormalnij committed Sep 26, 2024
1 parent 026ff21 commit b4a8c4a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Client/mods/deathmatch/logic/CClientModelManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ bool CClientModelManager::Remove(const std::shared_ptr<CClientModel>& 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--;
Expand Down

0 comments on commit b4a8c4a

Please sign in to comment.