Fix RawDataAsset memory usage to use capacity of the bytes array instead of just size

This commit is contained in:
Wojtek Figat
2024-03-04 22:46:30 +01:00
parent 5ec737ef80
commit d4e0023925

View File

@@ -69,7 +69,7 @@ uint64 RawDataAsset::GetMemoryUsage() const
Locker.Lock();
uint64 result = BinaryAsset::GetMemoryUsage();
result += sizeof(RawDataAsset) - sizeof(BinaryAsset);
result += Data.Count();
result += Data.Capacity();
Locker.Unlock();
return result;
}