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

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