13
0

fix midi buffer erase()

This commit is contained in:
Robin Gareus 2014-06-11 12:54:37 +02:00
parent 22f45b5a78
commit 0400fa64da

View File

@ -124,7 +124,7 @@ public:
size_t total_data_deleted = sizeof(TimeType) + event_size; size_t total_data_deleted = sizeof(TimeType) + event_size;
if (i.offset + total_data_deleted >= _size) { if (i.offset + total_data_deleted > _size) {
_size = 0; _size = 0;
return end(); return end();
} }