Fix crash in navmesh builder when scene gets unloaded after navmesh tile gets dirty
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user