diff --git a/source/simulation2/components/CCmpCinemaManager.cpp b/source/simulation2/components/CCmpCinemaManager.cpp index fc82ab172f..7acc5c0134 100644 --- a/source/simulation2/components/CCmpCinemaManager.cpp +++ b/source/simulation2/components/CCmpCinemaManager.cpp @@ -269,12 +269,12 @@ public: } } - const CStrW GetActivePath() const override + CStrW GetActivePath() const override { return m_IsPlayingPathQueue ? m_PathQueue.front().GetName() : CStrW(); } - const fixed GetActivePathElapsedTime() const override + fixed GetActivePathElapsedTime() const override { return m_ActivePathElapsedTime; } diff --git a/source/simulation2/components/ICmpCinemaManager.h b/source/simulation2/components/ICmpCinemaManager.h index 39937c5e36..ff0adb71fb 100644 --- a/source/simulation2/components/ICmpCinemaManager.h +++ b/source/simulation2/components/ICmpCinemaManager.h @@ -102,12 +102,12 @@ public: /** * Get the name of the path currently playing, if any. */ - virtual const CStrW GetActivePath() const = 0; + virtual CStrW GetActivePath() const = 0; /** * Get the time elapsed since the currently active path started playing. */ - virtual const fixed GetActivePathElapsedTime() const = 0; + virtual fixed GetActivePathElapsedTime() const = 0; DECLARE_INTERFACE_TYPE(CinemaManager) };