summaryrefslogtreecommitdiffstats
path: root/src/rw/VisibilityPlugins.cpp
diff options
context:
space:
mode:
authorwithmorten <morten.with@gmail.com>2021-01-31 02:08:42 +0100
committerwithmorten <morten.with@gmail.com>2021-01-31 02:08:42 +0100
commitda378077f78a1773a6c4bf5a768c6ebb5a7c75b5 (patch)
tree348c13d4b3cac0d04d97c1830b6e10f4dd19bafa /src/rw/VisibilityPlugins.cpp
parentMerge branch 'master' of https://github.com/GTAmodding/re3 (diff)
downloadre3-da378077f78a1773a6c4bf5a768c6ebb5a7c75b5.tar
re3-da378077f78a1773a6c4bf5a768c6ebb5a7c75b5.tar.gz
re3-da378077f78a1773a6c4bf5a768c6ebb5a7c75b5.tar.bz2
re3-da378077f78a1773a6c4bf5a768c6ebb5a7c75b5.tar.lz
re3-da378077f78a1773a6c4bf5a768c6ebb5a7c75b5.tar.xz
re3-da378077f78a1773a6c4bf5a768c6ebb5a7c75b5.tar.zst
re3-da378077f78a1773a6c4bf5a768c6ebb5a7c75b5.zip
Diffstat (limited to '')
-rw-r--r--src/rw/VisibilityPlugins.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/rw/VisibilityPlugins.cpp b/src/rw/VisibilityPlugins.cpp
index 32461d1c..051a6883 100644
--- a/src/rw/VisibilityPlugins.cpp
+++ b/src/rw/VisibilityPlugins.cpp
@@ -192,6 +192,10 @@ CVisibilityPlugins::InitAlphaEntityList(void)
bool
CVisibilityPlugins::InsertEntityIntoSortedList(CEntity *e, float dist)
{
+#ifdef FIX_BUGS
+ if (!e->m_rwObject) return true;
+#endif
+
AlphaObjectInfo item;
item.entity = e;
item.sort = dist;