diff --git a/src/thirdparty/recast/Detour/Include/DetourNavMesh.h b/src/thirdparty/recast/Detour/Include/DetourNavMesh.h index 7fb747ec..b512c0c0 100644 --- a/src/thirdparty/recast/Detour/Include/DetourNavMesh.h +++ b/src/thirdparty/recast/Detour/Include/DetourNavMesh.h @@ -871,7 +871,9 @@ public: /// @param[in] size The size of the traverse table. void setTraverseTableSize(const int size) { m_params.traverseTableSize = size; } +#if DT_NAVMESH_SET_VERSION >= 7 void freeHints(); +#endif /// @} diff --git a/src/thirdparty/recast/Detour/Source/DetourNavMesh.cpp b/src/thirdparty/recast/Detour/Source/DetourNavMesh.cpp index 0d68256e..66722d81 100644 --- a/src/thirdparty/recast/Detour/Source/DetourNavMesh.cpp +++ b/src/thirdparty/recast/Detour/Source/DetourNavMesh.cpp @@ -293,7 +293,9 @@ dtNavMesh::~dtNavMesh() rdFree(m_tiles); freeTraverseTables(); +#if DT_NAVMESH_SET_VERSION >= 7 freeHints(); +#endif } dtStatus dtNavMesh::init(const dtNavMeshParams* params) @@ -2091,6 +2093,7 @@ void dtNavMesh::setTraverseTable(const int index, int* const table) m_traverseTables[index] = table; } +#if DT_NAVMESH_SET_VERSION >= 7 void dtNavMesh::freeHints() { for (int i = 0; i < m_params.hintCount; i++) @@ -2103,6 +2106,7 @@ void dtNavMesh::freeHints() rdFree(m_hints); } +#endif dtStatus dtNavMesh::setPolyFlags(dtPolyRef ref, unsigned short flags) {