Recast: use the constants

This commit is contained in:
Kawe Mazidjatari 2024-08-08 16:02:16 +02:00
parent 55c98902f3
commit c12690b33c

View File

@ -147,7 +147,7 @@ static void drawTraverseLinks(duDebugDraw* dd, const dtNavMesh& mesh, const dtNa
continue; continue;
// Iterate through links in the poly. // Iterate through links in the poly.
for (int j = startPoly->firstLink; j != -1; j = tile->links[j].next) for (int j = startPoly->firstLink; j != DT_NULL_LINK; j = tile->links[j].next)
{ {
const dtLink* link = &tile->links[j]; const dtLink* link = &tile->links[j];