trying prevent crash at exit

This commit is contained in:
Lucas 2024-10-02 08:36:43 +02:00
parent ff10e884dc
commit 6998fb1e1e

View file

@ -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, // 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. // we call this function before unloading the module.
if (GEngine->GetEngineSubsystem<USkyPortalSubsystem>()) { if (GEngine && GEngine->GetEngineSubsystem<USkyPortalSubsystem>()) {
GEngine->GetEngineSubsystem<USkyPortalSubsystem>()->Deinitialize(); GEngine->GetEngineSubsystem<USkyPortalSubsystem>()->Deinitialize();
} }
} }