diff --git a/src/thirdparty/recast/DebugUtils/Source/DetourDebugDraw.cpp b/src/thirdparty/recast/DebugUtils/Source/DetourDebugDraw.cpp index cca43ec4..76a1d018 100644 --- a/src/thirdparty/recast/DebugUtils/Source/DetourDebugDraw.cpp +++ b/src/thirdparty/recast/DebugUtils/Source/DetourDebugDraw.cpp @@ -147,7 +147,7 @@ static void drawTraverseLinks(duDebugDraw* dd, const dtNavMesh& mesh, const dtNa continue; // 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];