From 6998fb1e1e35b14f867eb6b76001956eb6c12691 Mon Sep 17 00:00:00 2001 From: LUCASTUCIOUS Date: Wed, 2 Oct 2024 08:36:43 +0200 Subject: [PATCH] trying prevent crash at exit --- Source/SkyPortal/Private/SkyPortal.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/SkyPortal/Private/SkyPortal.cpp b/Source/SkyPortal/Private/SkyPortal.cpp index 4724a77..b85835b 100644 --- a/Source/SkyPortal/Private/SkyPortal.cpp +++ b/Source/SkyPortal/Private/SkyPortal.cpp @@ -15,7 +15,7 @@ void FSkyPortalModule::ShutdownModule() // This function may be called during shutdown to clean up your module. For modules that support dynamic reloading, // we call this function before unloading the module. - if (GEngine->GetEngineSubsystem()) { + if (GEngine && GEngine->GetEngineSubsystem()) { GEngine->GetEngineSubsystem()->Deinitialize(); } }