Skip to content

Commit

Permalink
[unreal]fix warning: #1872
Browse files Browse the repository at this point in the history
  • Loading branch information
chexiongsheng committed Oct 31, 2024
1 parent dcd4b56 commit 892499b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -999,7 +999,7 @@ void UPEBlueprintAsset::SetupAttachment(FName InComponentName, FName InParentCom
{
NeedSave = true;
Blueprint->SimpleConstructionScript->RemoveNode(SCS_Node);
USceneComponent* SceneComponentTemplate = Cast<USceneComponent>(SCS_Node->ComponentClass);
USceneComponent* SceneComponentTemplate = Cast<USceneComponent>(SCS_Node->ComponentClass->GetDefaultObject());
if (SceneComponentTemplate)
{
// Save current state
Expand Down

0 comments on commit 892499b

Please sign in to comment.