Recast: fix typo in dtHint struct

dtHint::triangle should be triangles as it can contain more than one triangle, renamed it to 'tris' to keep consistency with the rest of the code base. Also fixed its comment explaining what its size is.
This commit is contained in:
Kawe Mazidjatari 2024-11-08 21:42:31 +01:00
parent a7086a600a
commit 7bd90f191e
2 changed files with 2 additions and 2 deletions

View File

@ -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.

View File

@ -2241,7 +2241,7 @@ void dtNavMesh::freeHints()
dtHint& hint = m_hints[i];
rdFree(hint.verts);
rdFree(hint.triangle);
rdFree(hint.tris);
}
rdFree(m_hints);