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(); } }