Skip to content

Commit fa3a927

Browse files
committed
fix crash issue
1 parent a6d774a commit fa3a927

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

HotPatcher/Source/HotPatcherCore/Private/CreatePatch/ReleaseProxy.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,10 @@ namespace ReleaseWorker
101101
{
102102
AllConfigPlatformSet.Add(PlatformsPakListFile.TargetPlatform);
103103
}
104-
105-
AddProjectDirToTarget = AllConfigPlatformSet.Num() > 1 ? ETargetPlatform::AllPlatforms : AllConfigPlatformSet.Array()[0];
104+
if(AllConfigPlatformSet.Num())
105+
{
106+
AddProjectDirToTarget = AllConfigPlatformSet.Num() > 1 ? ETargetPlatform::AllPlatforms : AllConfigPlatformSet.Array()[0];
107+
}
106108

107109
UFlibHotPatcherCoreHelper::ImportProjectNotAssetDir(Context.GetSettingObject()->GetAddExternAssetsToPlatform(),AddProjectDirToTarget);
108110
}

0 commit comments

Comments
 (0)