From d0099a6d790b66f21e4e266e569d64fb82fb0a81 Mon Sep 17 00:00:00 2001 From: Kai Blaschke Date: Mon, 19 Feb 2024 23:29:39 +0100 Subject: Fixed some uninitialized members May have caused undefined behavior in few cases, as most of the fixed members were used before being initialized. --- source/frontend/StarCinematic.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'source/frontend/StarCinematic.cpp') diff --git a/source/frontend/StarCinematic.cpp b/source/frontend/StarCinematic.cpp index 40fc8d1..7b095a6 100644 --- a/source/frontend/StarCinematic.cpp +++ b/source/frontend/StarCinematic.cpp @@ -12,7 +12,6 @@ const float vWidth = 960.0f; const float vHeight = 540.0f; Cinematic::Cinematic() { - m_completionTime = 0; m_completable = false; m_suppressInput = false; } @@ -342,7 +341,7 @@ float Cinematic::currentTimecode() const { Cinematic::PanelValues Cinematic::determinePanelValues(PanelPtr panel, float timecode) { if (panel->endTime != 0) { if (timecode > panel->endTime) { - Cinematic::PanelValues result; + Cinematic::PanelValues result{}; result.alpha = 0; return result; } @@ -350,7 +349,7 @@ Cinematic::PanelValues Cinematic::determinePanelValues(PanelPtr panel, float tim if (panel->startTime != 0) { if (timecode < panel->startTime) { - Cinematic::PanelValues result; + Cinematic::PanelValues result{}; result.alpha = 0; return result; } else { -- cgit v1.2.3