From 004fdfdb584def9376dfae62f3f8952da454a8f2 Mon Sep 17 00:00:00 2001 From: Vantha Date: Tue, 24 Feb 2026 10:47:51 +0100 Subject: [PATCH] Initialise m_DrawPaths inside the class Default values like this are better set inside the class already rather than in the constructor. --- source/graphics/CinemaManager.cpp | 9 +++++---- source/graphics/CinemaManager.h | 5 +---- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/source/graphics/CinemaManager.cpp b/source/graphics/CinemaManager.cpp index c18713c8fd..cac3a8dd54 100644 --- a/source/graphics/CinemaManager.cpp +++ b/source/graphics/CinemaManager.cpp @@ -39,12 +39,13 @@ #include #include -CCinemaManager::CCinemaManager() - : m_DrawPaths(false) -{ -} +<<<<<<< Updated upstream +CCinemaManager::CCinemaManager() {} void CCinemaManager::Update(const float deltaRealTime) const +======= +void CCinemaManager::Update(const float deltaRealTime) +>>>>>>> Stashed changes { CmpPtr cmpCinemaManager(g_Game->GetSimulation2()->GetSimContext().GetSystemEntity()); if (!cmpCinemaManager) diff --git a/source/graphics/CinemaManager.h b/source/graphics/CinemaManager.h index 6f67493d00..972cbe0a06 100644 --- a/source/graphics/CinemaManager.h +++ b/source/graphics/CinemaManager.h @@ -30,9 +30,6 @@ struct CColor; class CCinemaManager { public: - CCinemaManager(); - ~CCinemaManager() {} - /** * Renders paths and their nodes (if enabled). */ @@ -54,7 +51,7 @@ private: void DrawSpline(Renderer::Backend::IDeviceCommandContext& deviceCommandContext, const RNSpline& spline, const CColor& splineColor, int smoothness) const; void DrawNodes(Renderer::Backend::IDeviceCommandContext& deviceCommandContext, const RNSpline& spline, const CColor& nodesColor) const; - bool m_DrawPaths; + bool m_DrawPaths = false; }; #endif