2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-07-06 18:45:53 +00:00

CIntElement: Initialize x14_holdVal in CIESampleAndHold

Provides a deterministic initial state upon construction, which makes
for nicer debugging.
This commit is contained in:
Lioncash 2020-04-13 16:20:47 -04:00
parent 786675f307
commit 93622d9b4b

View File

@ -137,7 +137,7 @@ class CIESampleAndHold : public CIntElement {
mutable int x8_nextSampleFrame = 0; mutable int x8_nextSampleFrame = 0;
std::unique_ptr<CIntElement> xc_waitFramesMin; std::unique_ptr<CIntElement> xc_waitFramesMin;
std::unique_ptr<CIntElement> x10_waitFramesMax; std::unique_ptr<CIntElement> x10_waitFramesMax;
mutable int x14_holdVal; mutable int x14_holdVal = 0;
public: public:
CIESampleAndHold(std::unique_ptr<CIntElement>&& a, std::unique_ptr<CIntElement>&& b, std::unique_ptr<CIntElement>&& c) CIESampleAndHold(std::unique_ptr<CIntElement>&& a, std::unique_ptr<CIntElement>&& b, std::unique_ptr<CIntElement>&& c)