summaryrefslogtreecommitdiffstats
path: root/src/entities/Building.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-05-05 14:06:55 +0200
committerSergeanur <s.anureev@yandex.ua>2020-05-05 14:06:55 +0200
commit4cc1bb92e74eaabe9d5ef3d20fb658d577699fa9 (patch)
tree2f970e7b4fc457d3312b8ee3fef2d0de72f6fff8 /src/entities/Building.cpp
parentMore use of GetModelIndex (diff)
downloadre3-4cc1bb92e74eaabe9d5ef3d20fb658d577699fa9.tar
re3-4cc1bb92e74eaabe9d5ef3d20fb658d577699fa9.tar.gz
re3-4cc1bb92e74eaabe9d5ef3d20fb658d577699fa9.tar.bz2
re3-4cc1bb92e74eaabe9d5ef3d20fb658d577699fa9.tar.lz
re3-4cc1bb92e74eaabe9d5ef3d20fb658d577699fa9.tar.xz
re3-4cc1bb92e74eaabe9d5ef3d20fb658d577699fa9.tar.zst
re3-4cc1bb92e74eaabe9d5ef3d20fb658d577699fa9.zip
Diffstat (limited to 'src/entities/Building.cpp')
-rw-r--r--src/entities/Building.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/entities/Building.cpp b/src/entities/Building.cpp
index aad2d402..3c096636 100644
--- a/src/entities/Building.cpp
+++ b/src/entities/Building.cpp
@@ -12,7 +12,7 @@ CBuilding::ReplaceWithNewModel(int32 id)
{
DeleteRwObject();
- if(CModelInfo::GetModelInfo(m_modelIndex)->m_refCount == 0)
+ if (CModelInfo::GetModelInfo(m_modelIndex)->GetNumRefs() == 0)
CStreaming::RemoveModel(m_modelIndex);
m_modelIndex = id;