summaryrefslogtreecommitdiffstats
path: root/src/core/ZoneCull.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-05-06 12:23:26 +0200
committeraap <aap@papnet.eu>2020-05-06 12:23:26 +0200
commitcbfc45b3f72468e7880bec852773955d3886b5ff (patch)
treeb1c472a41e7b50d1950e37c8d27d1eb9531ca57d /src/core/ZoneCull.cpp
parentreverting fuckup (diff)
downloadre3-cbfc45b3f72468e7880bec852773955d3886b5ff.tar
re3-cbfc45b3f72468e7880bec852773955d3886b5ff.tar.gz
re3-cbfc45b3f72468e7880bec852773955d3886b5ff.tar.bz2
re3-cbfc45b3f72468e7880bec852773955d3886b5ff.tar.lz
re3-cbfc45b3f72468e7880bec852773955d3886b5ff.tar.xz
re3-cbfc45b3f72468e7880bec852773955d3886b5ff.tar.zst
re3-cbfc45b3f72468e7880bec852773955d3886b5ff.zip
Diffstat (limited to '')
-rw-r--r--src/core/ZoneCull.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/ZoneCull.cpp b/src/core/ZoneCull.cpp
index 780c180e..6dcd0f18 100644
--- a/src/core/ZoneCull.cpp
+++ b/src/core/ZoneCull.cpp
@@ -533,7 +533,7 @@ CCullZone::IsEntityCloseEnoughToZone(CEntity *entity, bool checkLevel)
if (lodDist > distToZone) return true;
if (!checkLevel) return false;
- return CTheZones::GetLevelFromPosition(pos) == CTheZones::GetLevelFromPosition(CVector(minx, miny, minz));
+ return CTheZones::GetLevelFromPosition(&pos) == CTheZones::GetLevelFromPosition(&CVector(minx, miny, minz));
}
bool