diff --git a/Include/Aurora/Memory/ByteBuffer.hpp b/Include/Aurora/Memory/ByteBuffer.hpp index cf2efdf2..9ff9351e 100644 --- a/Include/Aurora/Memory/ByteBuffer.hpp +++ b/Include/Aurora/Memory/ByteBuffer.hpp @@ -281,7 +281,14 @@ namespace Aurora::Memory this->flagReadError = 0; this->flagWriteError = 0; this->readPtr = base; - this->writePtr = base; + if (this->flagCircular) + { + this->writePtr = base; + } + else + { + this->writePtr = this->base + length; + } } // utils: Iterator