diff options
author | aap <aap@papnet.eu> | 2020-06-19 00:10:41 +0200 |
---|---|---|
committer | aap <aap@papnet.eu> | 2020-06-20 14:54:11 +0200 |
commit | c5205a89eedbbefafb27d6ff482578d4cceaaaab (patch) | |
tree | 71870a82a4cac246adf58319661ed939a4af5fac /src/core/Cam.cpp | |
parent | bikes in garages + bugfix (diff) | |
download | re3-c5205a89eedbbefafb27d6ff482578d4cceaaaab.tar re3-c5205a89eedbbefafb27d6ff482578d4cceaaaab.tar.gz re3-c5205a89eedbbefafb27d6ff482578d4cceaaaab.tar.bz2 re3-c5205a89eedbbefafb27d6ff482578d4cceaaaab.tar.lz re3-c5205a89eedbbefafb27d6ff482578d4cceaaaab.tar.xz re3-c5205a89eedbbefafb27d6ff482578d4cceaaaab.tar.zst re3-c5205a89eedbbefafb27d6ff482578d4cceaaaab.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/Cam.cpp | 5 |
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) |