[*] stream regression

This commit is contained in:
Reece Wilson 2023-04-25 10:09:37 +01:00
parent 664eb270dc
commit e0d7bbea01

View File

@ -356,7 +356,7 @@ namespace Aurora::IO
auto uInterframeProgress = this->GetBytesProcessedInterframe();
if (bIsCullingLastFrame = (canRead2 + uInterframeProgress > this->uBytesWrittenLimit_))
if (bIsCullingLastFrame = (this->uBytesWrittenLimit_ && canRead2 + uInterframeProgress > this->uBytesWrittenLimit_))
{
auto uLastFrameBytes = this->uBytesWrittenLimit_ - uInterframeProgress;
auto uAbsDataToRead = AuMin<AuUInt>(canRead, uLastFrameBytes);