Skip to content

Commit

Permalink
Raise assertion if action is not found when updating a MIDI event in it
Browse files Browse the repository at this point in the history
  • Loading branch information
gvnnz committed Nov 13, 2024
1 parent eb448cd commit 81714e0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/core/model/actions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,9 @@ void Actions::updateKeyFrames(std::function<Frame(Frame old)> f)

void Actions::updateEvent(ID id, MidiEvent e)
{
findAction(m_actions, id)->event = e;
Action* a = findAction(m_actions, id);
assert(a != nullptr);
a->event = e;
}

/* -------------------------------------------------------------------------- */
Expand Down

0 comments on commit 81714e0

Please sign in to comment.