Removed the assertion since it may create issues when

missing notes
This commit is contained in:
Paul Ferrand 2019-12-30 00:30:39 +01:00
parent 0d0cf64405
commit 644b678880

View file

@ -25,8 +25,8 @@ void sfz::MidiState::noteOffEvent(int noteNumber, uint8_t velocity [[maybe_unuse
ASSERT(velocity >= 0 && velocity <= 127);
if (noteNumber >= 0 && noteNumber < 128) {
activeNotes--;
ASSERT(activeNotes >= 0);
if (activeNotes > 0)
activeNotes--;
}
}