From c4860cd1f1468680bc70290b3f84d819ce993e6d Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Sun, 11 Aug 2024 11:32:10 +0200 Subject: [PATCH] Recast: more renderer cleanup --- src/thirdparty/recast/DebugUtils/Source/DetourDebugDraw.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/thirdparty/recast/DebugUtils/Source/DetourDebugDraw.cpp b/src/thirdparty/recast/DebugUtils/Source/DetourDebugDraw.cpp index 430abad4..823407f5 100644 --- a/src/thirdparty/recast/DebugUtils/Source/DetourDebugDraw.cpp +++ b/src/thirdparty/recast/DebugUtils/Source/DetourDebugDraw.cpp @@ -353,7 +353,7 @@ static void drawMeshTile(duDebugDraw* dd, const dtNavMesh& mesh, const dtNavMesh { const unsigned int vcol = duRGBA(0,0,0,220); dd->begin(DU_DRAW_POINTS, 4.0f, offset); - for (int i = 0; i < tile->header->vertCount; ++i) + for (int i = 0; i < header->vertCount; ++i) { const float* v = &tile->verts[i*3]; dd->vertex(v[0], v[1], v[2], vcol);