Fixed unsigned mistmatch

This commit is contained in:
doterop 2020-07-29 17:05:23 +02:00 committed by bernat
parent 70dc79d18f
commit 04b9086add
1 changed files with 3 additions and 2 deletions

View File

@ -563,8 +563,9 @@ bool ASceneCaptureSensor::CopyTextureFromAtlas(
// Check that the atlas alreay contains our texture // Check that the atlas alreay contains our texture
// and our image has been initialized // and our image has been initialized
if(AtlasImage.GetData() && uint32 ExpectedSize = (uint32)(PositionInAtlas.Y * AtlasTextureWidth + ImageWidth * ImageHeight);
AtlasImage.Num() < (PositionInAtlas.Y * AtlasTextureWidth + ImageWidth * ImageHeight)) uint32 TotalSize = (uint32)AtlasImage.Num();
if(AtlasImage.GetData() && TotalSize < ExpectedSize)
{ {
return false; return false;
} }