Fix RawDataAsset memory usage to use capacity of the bytes array instead of just size
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user