mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-08 15:44:56 +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:
@@ -137,7 +137,7 @@ class CIESampleAndHold : public CIntElement {
|
||||
mutable int x8_nextSampleFrame = 0;
|
||||
std::unique_ptr<CIntElement> xc_waitFramesMin;
|
||||
std::unique_ptr<CIntElement> x10_waitFramesMax;
|
||||
mutable int x14_holdVal;
|
||||
mutable int x14_holdVal = 0;
|
||||
|
||||
public:
|
||||
CIESampleAndHold(std::unique_ptr<CIntElement>&& a, std::unique_ptr<CIntElement>&& b, std::unique_ptr<CIntElement>&& c)
|
||||
|
||||
Reference in New Issue
Block a user