Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/frontend/StarCinematic.hpp
diff options
context:
space:
mode:
authorKai Blaschke <kai.blaschke@kb-dev.net>2024-02-19 23:29:39 +0100
committerKai Blaschke <kai.blaschke@kb-dev.net>2024-02-19 23:44:59 +0100
commitd0099a6d790b66f21e4e266e569d64fb82fb0a81 (patch)
tree69174faa3f95079e5e33e00970d161c9b3f02048 /source/frontend/StarCinematic.hpp
parent42fc1d6714036a2814f1e6ab293eaa0009320ef4 (diff)
Fixed some uninitialized members
May have caused undefined behavior in few cases, as most of the fixed members were used before being initialized.
Diffstat (limited to 'source/frontend/StarCinematic.hpp')
-rw-r--r--source/frontend/StarCinematic.hpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/source/frontend/StarCinematic.hpp b/source/frontend/StarCinematic.hpp
index 96f40e7..a86523a 100644
--- a/source/frontend/StarCinematic.hpp
+++ b/source/frontend/StarCinematic.hpp
@@ -109,33 +109,33 @@ private:
// these include the time for background fades so they may not reflect the completion timecode
Clock m_timer;
- float m_completionTime;
+ float m_completionTime{};
Maybe<Vec4B> m_backgroundColor;
- float m_backgroundFadeTime;
+ float m_backgroundFadeTime{};
- float m_cameraZoom;
- Vec2F m_cameraPan;
+ float m_cameraZoom{1.0f};
+ Vec2F m_cameraPan{};
- float m_drawableScale;
- Vec2F m_drawableTranslation;
- Vec2F m_windowSize;
- RectI m_scissorRect;
+ float m_drawableScale{1.0f};
+ Vec2F m_drawableTranslation{};
+ Vec2F m_windowSize{};
+ RectI m_scissorRect{};
- bool m_scissor;
- bool m_letterbox;
+ bool m_scissor{true};
+ bool m_letterbox{true};
PlayerPtr m_player;
- Vec2F m_offset;
+ Vec2F m_offset{};
- bool m_skippable;
- bool m_suppressInput;
+ bool m_skippable{true};
+ bool m_suppressInput{false};
- bool m_muteSfx;
- bool m_muteMusic;
+ bool m_muteSfx{false};
+ bool m_muteMusic{false};
- bool m_completable;
+ bool m_completable{false};
};
}