diff options
| author | Wohlstand <admin@wohlnet.ru> | 2021-11-20 02:26:22 +0300 |
|---|---|---|
| committer | Wohlstand <admin@wohlnet.ru> | 2021-11-20 02:26:22 +0300 |
| commit | 757e818b45c279786ac2b040bc6041eea1e6c946 (patch) | |
| tree | 0af82cff00808e72f868ece59c332a7ea3a58640 /src | |
| parent | 447b2e55f0c269c10c0010641722590619a75144 (diff) | |
| download | libADLMIDI-757e818b45c279786ac2b040bc6041eea1e6c946.tar.gz libADLMIDI-757e818b45c279786ac2b040bc6041eea1e6c946.tar.bz2 libADLMIDI-757e818b45c279786ac2b040bc6041eea1e6c946.zip | |
Another small fix
Diffstat (limited to 'src')
| -rw-r--r-- | src/midi_sequencer_impl.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/midi_sequencer_impl.hpp b/src/midi_sequencer_impl.hpp index 9136cb6..d6c4f55 100644 --- a/src/midi_sequencer_impl.hpp +++ b/src/midi_sequencer_impl.hpp @@ -1881,8 +1881,8 @@ void BW_MidiSequencer::handleEvent(size_t track, const BW_MidiSequencer::MidiEve } char x = data[0]; - size_t s_addr = static_cast<size_t>(m_loop.stackLevel + 1); - while(s_addr >= m_loop.stack.size()) + size_t slevel = static_cast<size_t>(m_loop.stackLevel + 1); + while(slevel >= m_loop.stack.size()) { LoopStackEntry e; e.loops = x; @@ -1892,7 +1892,7 @@ void BW_MidiSequencer::handleEvent(size_t track, const BW_MidiSequencer::MidiEve m_loop.stack.push_back(e); } - LoopStackEntry &s = m_loop.stack[s_addr]; + LoopStackEntry &s = m_loop.stack[slevel]; s.loops = static_cast<int>(x); s.infinity = (x == 0); m_loop.caughtStackStart = true; |