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
1 changed files with 1 additions and 1 deletions

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)