fix crash on MIDI unlearn for cue slot (bad iterator
This commit is contained in:
parent
eb1373404a
commit
bd8c3af2a2
@ -4010,6 +4010,7 @@ TriggerBox::remove_custom_midi_binding (int x, int y)
|
||||
for (CustomMidiMap::iterator i = _custom_midi_map.begin(); i != _custom_midi_map.end(); ++i) {
|
||||
if (i->second.first == x && i->second.second == y) {
|
||||
_custom_midi_map.erase (i);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user