You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
Don't operate on UObjects during object destruction, prefer doing so inside BeginDestroy instead.
#jira UE-185154 #rb trivial #rnx #preflight 6454789f023fe5d3ad643909 [CL 25347759 by halfdan ingvarsson in ue5-main branch]
This commit is contained in:
@@ -78,8 +78,10 @@ ULevelVariantSets::ULevelVariantSets(const FObjectInitializer& ObjectInitializer
|
||||
#endif
|
||||
}
|
||||
|
||||
ULevelVariantSets::~ULevelVariantSets()
|
||||
|
||||
void ULevelVariantSets::BeginDestroy()
|
||||
{
|
||||
Super::BeginDestroy();
|
||||
#if WITH_EDITOR
|
||||
UnsubscribeToEditorDelegates();
|
||||
UnsubscribeToDirectorCompiled();
|
||||
|
||||
@@ -18,9 +18,8 @@ class VARIANTMANAGERCONTENT_API ULevelVariantSets : public UObject
|
||||
|
||||
public:
|
||||
|
||||
~ULevelVariantSets();
|
||||
|
||||
// UObject interface
|
||||
virtual void BeginDestroy() override;
|
||||
virtual void Serialize(FArchive& Ar) override;
|
||||
//~ End UObject interface
|
||||
|
||||
|
||||
Reference in New Issue
Block a user