summaryrefslogtreecommitdiffstats
path: root/src/entities/Entity.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-05-06 13:42:41 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-05-06 13:42:41 +0200
commit8c036ec671f51a6957f0ac57daf8897ce5fa0925 (patch)
treeb05bf852327cc5442e9bacbb7e2fb1e66bc3ea4a /src/entities/Entity.cpp
parentMerge remote-tracking branch 'upstream/miami' into miami (diff)
parentFix appveyor (diff)
downloadre3-8c036ec671f51a6957f0ac57daf8897ce5fa0925.tar
re3-8c036ec671f51a6957f0ac57daf8897ce5fa0925.tar.gz
re3-8c036ec671f51a6957f0ac57daf8897ce5fa0925.tar.bz2
re3-8c036ec671f51a6957f0ac57daf8897ce5fa0925.tar.lz
re3-8c036ec671f51a6957f0ac57daf8897ce5fa0925.tar.xz
re3-8c036ec671f51a6957f0ac57daf8897ce5fa0925.tar.zst
re3-8c036ec671f51a6957f0ac57daf8897ce5fa0925.zip
Diffstat (limited to 'src/entities/Entity.cpp')
-rw-r--r--src/entities/Entity.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/entities/Entity.cpp b/src/entities/Entity.cpp
index 907e3b14..5427665a 100644
--- a/src/entities/Entity.cpp
+++ b/src/entities/Entity.cpp
@@ -333,7 +333,7 @@ CEntity::SetupBigBuilding(void)
bIsBIGBuilding = true;
bStreamingDontDelete = true;
bUsesCollision = false;
- m_level = CTheZones::GetLevelFromPosition(GetPosition());
+ m_level = CTheZones::GetLevelFromPosition(&GetPosition());
if(mi->m_lodDistances[0] <= 2000.0f)
bStreamBIGBuilding = true;
if(mi->m_lodDistances[0] > 2500.0f || mi->m_ignoreDrawDist)