Sequencer: Always initialize ChannelState channel ID

Provides a deterministic initial state for the default constructor case.
This commit is contained in:
Lioncash 2019-09-10 20:05:02 -04:00
parent 5f76f0ecbf
commit 9ec78d6b9f
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ class Sequencer : public Entity {
/** State of a single MIDI channel */
struct ChannelState {
Sequencer* m_parent = nullptr;
uint8_t m_chanId;
uint8_t m_chanId = 0;
const SongGroupIndex::MIDISetup* m_setup = nullptr; /* Channel defaults to program 0 if null */
const SongGroupIndex::PageEntry* m_page = nullptr;
~ChannelState();