From fa3a927ab4e78282cc078f256bd1448ac25c1c1c Mon Sep 17 00:00:00 2001 From: hxhb Date: Fri, 2 Sep 2022 03:45:16 +0000 Subject: [PATCH] fix crash issue --- .../HotPatcherCore/Private/CreatePatch/ReleaseProxy.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/HotPatcher/Source/HotPatcherCore/Private/CreatePatch/ReleaseProxy.cpp b/HotPatcher/Source/HotPatcherCore/Private/CreatePatch/ReleaseProxy.cpp index 1d90f415..2a81bf7d 100644 --- a/HotPatcher/Source/HotPatcherCore/Private/CreatePatch/ReleaseProxy.cpp +++ b/HotPatcher/Source/HotPatcherCore/Private/CreatePatch/ReleaseProxy.cpp @@ -101,8 +101,10 @@ namespace ReleaseWorker { AllConfigPlatformSet.Add(PlatformsPakListFile.TargetPlatform); } - - AddProjectDirToTarget = AllConfigPlatformSet.Num() > 1 ? ETargetPlatform::AllPlatforms : AllConfigPlatformSet.Array()[0]; + if(AllConfigPlatformSet.Num()) + { + AddProjectDirToTarget = AllConfigPlatformSet.Num() > 1 ? ETargetPlatform::AllPlatforms : AllConfigPlatformSet.Array()[0]; + } UFlibHotPatcherCoreHelper::ImportProjectNotAssetDir(Context.GetSettingObject()->GetAddExternAssetsToPlatform(),AddProjectDirToTarget); }