Remove unnecessary accessor for navmesh field

This commit is contained in:
Graham Pentheny
2025-07-21 01:18:34 -04:00
parent b1622e4656
commit 6331eda278
4 changed files with 15 additions and 24 deletions

View File

@@ -222,7 +222,7 @@ void NavMeshPruneTool::handleMenu()
return;
}
dtNavMesh* nav = sample->getNavMesh();
dtNavMesh* nav = sample->navMesh;
if (!nav)
{
return;
@@ -255,7 +255,7 @@ void NavMeshPruneTool::handleClick(const float* s, const float* p, bool shift)
{
return;
}
dtNavMesh* nav = sample->getNavMesh();
dtNavMesh* nav = sample->navMesh;
if (!nav)
{
return;
@@ -301,7 +301,7 @@ void NavMeshPruneTool::handleRender()
debugDraw.end();
}
const dtNavMesh* nav = sample->getNavMesh();
const dtNavMesh* nav = sample->navMesh;
if (flags && nav)
{
for (int i = 0; i < nav->getMaxTiles(); ++i)