mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-19 19:53:53 +00:00
Add an assert for possible null pointer dereference
This commit is contained in:
parent
b1c8a968ae
commit
fe10799bfe
1 changed files with 2 additions and 0 deletions
|
@ -457,6 +457,8 @@ namespace DetourNavigator
|
||||||
|
|
||||||
const auto offMeshConnections = mOffMeshConnectionsManager.get().get(job.mChangedTile);
|
const auto offMeshConnections = mOffMeshConnectionsManager.get().get(job.mChangedTile);
|
||||||
|
|
||||||
|
assert(preparedNavMeshDataPtr != nullptr);
|
||||||
|
|
||||||
const UpdateNavMeshStatus status
|
const UpdateNavMeshStatus status
|
||||||
= navMeshCacheItem.lock()->updateTile(job.mChangedTile, std::move(cachedNavMeshData),
|
= navMeshCacheItem.lock()->updateTile(job.mChangedTile, std::move(cachedNavMeshData),
|
||||||
makeNavMeshTileData(*preparedNavMeshDataPtr, offMeshConnections, job.mAgentBounds, job.mChangedTile,
|
makeNavMeshTileData(*preparedNavMeshDataPtr, offMeshConnections, job.mAgentBounds, job.mChangedTile,
|
||||||
|
|
Loading…
Reference in a new issue