Skip to content

Commit bc02a4a

Browse files
committed
Merge branch 'fix_navigator_nullptr' into 'master'
Use navigator in world destructor only when initialized See merge request OpenMW/openmw!4477
2 parents c207397 + cb654a0 commit bc02a4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/openmw/mwworld/worldimp.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,7 @@ namespace MWWorld
602602
if (mProjectileManager)
603603
mProjectileManager->clear();
604604

605-
if (Settings::navigator().mWaitForAllJobsOnExit)
605+
if (Settings::navigator().mWaitForAllJobsOnExit && mNavigator != nullptr)
606606
{
607607
Log(Debug::Verbose) << "Waiting for all navmesh jobs to be done...";
608608
mNavigator->wait(DetourNavigator::WaitConditionType::allJobsDone, nullptr);

0 commit comments

Comments
 (0)