From c5205a89eedbbefafb27d6ff482578d4cceaaaab Mon Sep 17 00:00:00 2001 From: aap Date: Fri, 19 Jun 2020 00:10:41 +0200 Subject: CCamera done --- src/core/Cam.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/core/Cam.cpp') 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) -- cgit v1.2.3