fix: initialize max_events when clearing clip state

This commit is contained in:
Loic Coenen
2026-05-03 19:14:20 +00:00
committed by Loic Coenen (aider)
parent 316fc0fe3b
commit 3a358dde0c

View File

@@ -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
}