Fix ringbuffer copy constructor

This commit is contained in:
Thomas Nordquist
2019-03-19 13:47:00 +01:00
parent eb7d7e8955
commit 485e1cffae

View File

@@ -17,7 +17,7 @@ export class RingBuffer<T extends Lengthwise> {
if (ringBuffer) {
this.items = ringBuffer.toArray()
this.end = this.items.length
this.usage = this.items.length
this.usage = ringBuffer.usage
}
}