diff options
-rw-r--r-- | src/midi_sequencer.hpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/midi_sequencer.hpp b/src/midi_sequencer.hpp index e6e9983..2c02fc9 100644 --- a/src/midi_sequencer.hpp +++ b/src/midi_sequencer.hpp @@ -457,6 +457,13 @@ private: //! Current level on the loop stack (<0 - out of loop, 0++ - the index in the loop stack) int stackLevel; + //! Constructor to initialize member variables + LoopState() + : caughtStart(false), caughtEnd(false), caughtStackStart(false), + caughtStackEnd(false), caughtStackBreak(false), skipStackStart(false), + invalidLoop(false), temporaryBroken(false), loopsCount(-1), loopsLeft(0), + stackLevel(-1) + {} /** * @brief Reset loop state to initial */ |