trying prevent crash at exit
This commit is contained in:
parent
ff10e884dc
commit
6998fb1e1e
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue