diff --git a/libs/ardour/midi_model.cc b/libs/ardour/midi_model.cc index e3226e036f..06ea307664 100644 --- a/libs/ardour/midi_model.cc +++ b/libs/ardour/midi_model.cc @@ -1268,7 +1268,7 @@ MidiModel::PatchChangeDiffCommand::unmarshal_patch_change (XMLNode* n) } PatchChangePtr p (new Evoral::PatchChange (time, channel, program, bank)); - assert(id); + assert(n->property ("id")); p->set_id (id); return p; }