mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-15 22:39:42 +00:00
Use navigator in world destructor only when initialized
If world initialization fails, mNavigator may be nullptr.
This commit is contained in:
parent
c207397c56
commit
cb654a0149
1 changed files with 1 additions and 1 deletions
|
@ -602,7 +602,7 @@ namespace MWWorld
|
|||
if (mProjectileManager)
|
||||
mProjectileManager->clear();
|
||||
|
||||
if (Settings::navigator().mWaitForAllJobsOnExit)
|
||||
if (Settings::navigator().mWaitForAllJobsOnExit && mNavigator != nullptr)
|
||||
{
|
||||
Log(Debug::Verbose) << "Waiting for all navmesh jobs to be done...";
|
||||
mNavigator->wait(DetourNavigator::WaitConditionType::allJobsDone, nullptr);
|
||||
|
|
Loading…
Reference in a new issue