diff --git a/src/Core/GameProject/CResourceEntry.cpp b/src/Core/GameProject/CResourceEntry.cpp index 3332d333..ec53a239 100644 --- a/src/Core/GameProject/CResourceEntry.cpp +++ b/src/Core/GameProject/CResourceEntry.cpp @@ -241,7 +241,7 @@ bool CResourceEntry::IsInDirectory(CVirtualDirectory *pDir) const uint64 CResourceEntry::Size() const { - if (mCachedSize == -1) + if (mCachedSize == UINT64_MAX) { if (HasCookedVersion()) mCachedSize = FileUtil::FileSize(CookedAssetPath());