diff --git a/apps/openmw/mwworld/worldimp.cpp b/apps/openmw/mwworld/worldimp.cpp index c541c6003a..bacedcab33 100644 --- a/apps/openmw/mwworld/worldimp.cpp +++ b/apps/openmw/mwworld/worldimp.cpp @@ -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);