diff --git a/src/thirdparty/recast/Detour/Include/DetourNavMesh.h b/src/thirdparty/recast/Detour/Include/DetourNavMesh.h index 6e01ee36..a0049d87 100644 --- a/src/thirdparty/recast/Detour/Include/DetourNavMesh.h +++ b/src/thirdparty/recast/Detour/Include/DetourNavMesh.h @@ -415,7 +415,7 @@ struct dtCell struct dtHint { float* verts; ///< The triangle vertices. [Size: (x, y, z) * dtHint::vertCount] - dtTriangleSurface* triangle; ///< The triangles. [Size: dtHint::vertCount] + dtTriangleSurface* tris; ///< The triangles. [Size: dtHint::triCount] char unk[24]; // Editor only. int vertCount; ///< The number of vertices in the hint. int triCount; ///< The number of triangles in the hint. diff --git a/src/thirdparty/recast/Detour/Source/DetourNavMesh.cpp b/src/thirdparty/recast/Detour/Source/DetourNavMesh.cpp index 23371dc1..05256148 100644 --- a/src/thirdparty/recast/Detour/Source/DetourNavMesh.cpp +++ b/src/thirdparty/recast/Detour/Source/DetourNavMesh.cpp @@ -2241,7 +2241,7 @@ void dtNavMesh::freeHints() dtHint& hint = m_hints[i]; rdFree(hint.verts); - rdFree(hint.triangle); + rdFree(hint.tris); } rdFree(m_hints);