From 89233e807dbd00e2e5d9d9a6f1fba9e576202911 Mon Sep 17 00:00:00 2001 From: Janiels Date: Sat, 14 Jun 2014 15:43:22 +0200 Subject: [PATCH 1/2] Fix comment in rcHeightfieldLayer --- Recast/Include/Recast.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Recast/Include/Recast.h b/Recast/Include/Recast.h index b8f8b20..83ca606 100644 --- a/Recast/Include/Recast.h +++ b/Recast/Include/Recast.h @@ -338,7 +338,7 @@ struct rcHeightfieldLayer int maxy; ///< The maximum y-bounds of usable data. (Along the z-axis.) int hmin; ///< The minimum height bounds of usable data. (Along the y-axis.) int hmax; ///< The maximum height bounds of usable data. (Along the y-axis.) - unsigned char* heights; ///< The heightfield. [Size: (width - borderSize*2) * (h - borderSize*2)] + unsigned char* heights; ///< The heightfield. [Size: width * height] unsigned char* areas; ///< Area ids. [Size: Same as #heights] unsigned char* cons; ///< Packed neighbor connection information. [Size: Same as #heights] }; From 943bf35d323b529b75bbd3af018070b437ddbb95 Mon Sep 17 00:00:00 2001 From: Janiels Date: Sat, 14 Jun 2014 15:45:36 +0200 Subject: [PATCH 2/2] Add virtual destructor to dtQueryFilter --- Detour/Include/DetourNavMeshQuery.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Detour/Include/DetourNavMeshQuery.h b/Detour/Include/DetourNavMeshQuery.h index 4a5112c..a791b12 100644 --- a/Detour/Include/DetourNavMeshQuery.h +++ b/Detour/Include/DetourNavMeshQuery.h @@ -41,6 +41,10 @@ class dtQueryFilter public: dtQueryFilter(); +#ifdef DT_VIRTUAL_QUERYFILTER + virtual ~dtQueryFilter() { } +#endif + /// Returns true if the polygon can be visited. (I.e. Is traversable.) /// @param[in] ref The reference id of the polygon test. /// @param[in] tile The tile containing the polygon.