[*] update ResetPositions

This commit is contained in:
Reece Wilson 2023-04-29 07:46:35 +01:00
parent e4e3e70be2
commit 6317a5631d

View File

@ -281,7 +281,14 @@ namespace Aurora::Memory
this->flagReadError = 0; this->flagReadError = 0;
this->flagWriteError = 0; this->flagWriteError = 0;
this->readPtr = base; this->readPtr = base;
this->writePtr = base; if (this->flagCircular)
{
this->writePtr = base;
}
else
{
this->writePtr = this->base + length;
}
} }
// utils: Iterator // utils: Iterator