diff --git a/Source/ProjectCleaner/Private/Core/ProjectCleanerDataManager.cpp b/Source/ProjectCleaner/Private/Core/ProjectCleanerDataManager.cpp index 720721e5..e3f6a97b 100644 --- a/Source/ProjectCleaner/Private/Core/ProjectCleanerDataManager.cpp +++ b/Source/ProjectCleaner/Private/Core/ProjectCleanerDataManager.cpp @@ -242,7 +242,7 @@ int32 FProjectCleanerDataManager::DeleteAllUnusedAssets() } // Cleaning empty packages - const TSet EmptyPackages = AssetRegistry->Get().GetCachedEmptyPackagesCopy(); + const TSet EmptyPackages = AssetRegistry->Get().GetCachedEmptyPackages(); TArray AssetPackages; for (const auto& EmptyPackage : EmptyPackages) { diff --git a/Source/ProjectCleaner/Private/Core/ProjectCleanerUtility.cpp b/Source/ProjectCleaner/Private/Core/ProjectCleanerUtility.cpp index f510ffe2..8314a2f9 100644 --- a/Source/ProjectCleaner/Private/Core/ProjectCleanerUtility.cpp +++ b/Source/ProjectCleaner/Private/Core/ProjectCleanerUtility.cpp @@ -20,7 +20,7 @@ int64 ProjectCleanerUtility::GetTotalSize(const TArray& Assets) int64 Size = 0; for (const auto& Asset : Assets) { - const auto AssetPackageData = AssetRegistry.Get().GetAssetPackageDataCopy(Asset.PackageName); + const auto AssetPackageData = AssetRegistry.Get().GetAssetPackageData(Asset.PackageName); if (!AssetPackageData) continue; Size += AssetPackageData->DiskSize; }