fix midi buffer erase()
This commit is contained in:
parent
22f45b5a78
commit
0400fa64da
@ -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();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user