diff --git a/LoadingScreen.uplugin b/LoadingScreen.uplugin index 8d8128f..fe84f09 100644 --- a/LoadingScreen.uplugin +++ b/LoadingScreen.uplugin @@ -10,7 +10,7 @@ "CreatedByURL": "https://www.epicgames.com", "DocsURL": "https://github.com/ue4plugins/LoadingScreen", "SupportURL": "https://github.com/ue4plugins/LoadingScreen/issues", - "EngineVersion": "4.19.0", + "EngineVersion": "4.20.0", "EnabledByDefault": false, "CanContainContent": true, diff --git a/Source/LoadingScreen/LoadingScreen.Build.cs b/Source/LoadingScreen/LoadingScreen.Build.cs index 6824151..f495416 100644 --- a/Source/LoadingScreen/LoadingScreen.Build.cs +++ b/Source/LoadingScreen/LoadingScreen.Build.cs @@ -21,8 +21,7 @@ public LoadingScreen(ReadOnlyTargetRules Target) "SlateCore", "InputCore", "Engine" - } - ); + }); } } } diff --git a/Source/LoadingScreen/Private/SSimpleLoadingScreen.h b/Source/LoadingScreen/Private/SSimpleLoadingScreen.h index cc81737..3ea40f2 100644 --- a/Source/LoadingScreen/Private/SSimpleLoadingScreen.h +++ b/Source/LoadingScreen/Private/SSimpleLoadingScreen.h @@ -17,9 +17,10 @@ struct FLoadingScreenBrush : public FSlateDynamicImageBrush, public FGCObject virtual void AddReferencedObjects(FReferenceCollector& Collector) override { - if ( ResourceObject ) + UObject* Object = GetResourceObject(); + if (Object) { - Collector.AddReferencedObject(ResourceObject); + Collector.AddReferencedObject(Object); } } };