mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
Merge branch 'fix_navigator_nullptr' into 'master'
Use navigator in world destructor only when initialized See merge request OpenMW/openmw!4477
This commit is contained in:
commit
bc02a4a9ca
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…
Add table
Add a link
Reference in a new issue