summaryrefslogtreecommitdiffstats
path: root/src/core/Cam.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-06-20 15:03:00 +0200
committerGitHub <noreply@github.com>2020-06-20 15:03:00 +0200
commit7700970c9391afe54e7bd29a1e58db8c0fa9acfd (patch)
treeaf2f64fcfcfff22150364edf1ae203bea737158e /src/core/Cam.cpp
parentfix (diff)
parentCCamera done (diff)
downloadre3-7700970c9391afe54e7bd29a1e58db8c0fa9acfd.tar
re3-7700970c9391afe54e7bd29a1e58db8c0fa9acfd.tar.gz
re3-7700970c9391afe54e7bd29a1e58db8c0fa9acfd.tar.bz2
re3-7700970c9391afe54e7bd29a1e58db8c0fa9acfd.tar.lz
re3-7700970c9391afe54e7bd29a1e58db8c0fa9acfd.tar.xz
re3-7700970c9391afe54e7bd29a1e58db8c0fa9acfd.tar.zst
re3-7700970c9391afe54e7bd29a1e58db8c0fa9acfd.zip
Diffstat (limited to 'src/core/Cam.cpp')
-rw-r--r--src/core/Cam.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/Cam.cpp b/src/core/Cam.cpp
index 06e30ce9..b01572e9 100644
--- a/src/core/Cam.cpp
+++ b/src/core/Cam.cpp
@@ -3513,6 +3513,11 @@ CCam::Process_FlyBy(const CVector&, float, float, float)
if(TheCamera.m_bcutsceneFinished)
return;
+#ifdef FIX_BUGS
+ // this would crash, not nice when cycling debug mode
+ if(TheCamera.m_arrPathArray[0].m_arr_PathData == nil)
+ return;
+#endif
Up = CVector(0.0f, 0.0f, 1.0f);
if(TheCamera.m_bStartingSpline)