fix: initialize max_events when clearing clip state
This commit is contained in:
committed by
Loic Coenen (aider)
parent
316fc0fe3b
commit
3a358dde0c
@@ -533,6 +533,7 @@ AppState reducer(AppState state, Action action) {
|
||||
mclip->state = CLIP_EMPTY;
|
||||
mclip->event_count = 0;
|
||||
mclip->read_index = 0;
|
||||
mclip->max_events = MAX_MIDI_EVENTS;
|
||||
// events pointer should already be valid from init
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user