From 6acf21009db521591da38c175d92b83c22cd7c27 Mon Sep 17 00:00:00 2001 From: Jamie Reece Wilson Date: Tue, 24 Oct 2023 11:30:36 +0100 Subject: [PATCH] [-] Bytebuf: Remove linear-buffer only constraint --- Include/Aurora/Memory/ByteBuffer_Position.inl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Include/Aurora/Memory/ByteBuffer_Position.inl b/Include/Aurora/Memory/ByteBuffer_Position.inl index 6cc26ce2..d8d263a1 100644 --- a/Include/Aurora/Memory/ByteBuffer_Position.inl +++ b/Include/Aurora/Memory/ByteBuffer_Position.inl @@ -392,7 +392,8 @@ namespace Aurora::Memory { return this->GetLinearWriteable(length); } - else if (!this->flagCircular && ((this->length == 0 && this->flagExpandable) || this->flagAlwaysExpandable)) + else if ((this->length == 0 && this->flagExpandable) || + this->flagAlwaysExpandable) { if (!this->Resize(length)) {