Fix crash in navmesh builder when scene gets unloaded after navmesh tile gets dirty

This commit is contained in:
Wojtek Figat
2021-03-21 13:44:30 +01:00
parent f413431667
commit 1c140a5b0e

View File

@@ -1016,6 +1016,8 @@ void NavMeshBuilder::Update()
{
NavBuildQueue.RemoveAt(i--);
const auto scene = req.Scene.Get();
if (!scene)
continue;
// Early out if scene has no bounds volumes to define nav mesh area
if (scene->NavigationVolumes.IsEmpty())