mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
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:
parent
a7086a600a
commit
7bd90f191e
@ -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.
|
||||
|
@ -2241,7 +2241,7 @@ void dtNavMesh::freeHints()
|
||||
dtHint& hint = m_hints[i];
|
||||
|
||||
rdFree(hint.verts);
|
||||
rdFree(hint.triangle);
|
||||
rdFree(hint.tris);
|
||||
}
|
||||
|
||||
rdFree(m_hints);
|
||||
|
Loading…
x
Reference in New Issue
Block a user