Add an assert for possible null pointer dereference

macos_ci_fix
Andrei Kortunov 1 year ago
parent b1c8a968ae
commit fe10799bfe

@ -457,6 +457,8 @@ namespace DetourNavigator
const auto offMeshConnections = mOffMeshConnectionsManager.get().get(job.mChangedTile);
assert(preparedNavMeshDataPtr != nullptr);
const UpdateNavMeshStatus status
= navMeshCacheItem.lock()->updateTile(job.mChangedTile, std::move(cachedNavMeshData),
makeNavMeshTileData(*preparedNavMeshDataPtr, offMeshConnections, job.mAgentBounds, job.mChangedTile,

Loading…
Cancel
Save