Mark start poly in NavMeshPruneTool

The start poly would not be pruned if it was the only poly on the
island.

Fix #216
This commit is contained in:
Jakob Botsch Nielsen 2016-07-13 05:37:15 +02:00
parent 9763478a9a
commit 5d6312ab1e

View File

@ -172,6 +172,8 @@ static void floodNavmesh(dtNavMesh* nav, NavmeshFlags* flags, dtPolyRef start, u
if (flags->getFlags(start)) if (flags->getFlags(start))
return; return;
flags->setFlags(start, flag);
PolyRefArray openList; PolyRefArray openList;
openList.push(start); openList.push(start);