From 3c8dc10b5041e778943a12f0ea4482615b541338 Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Thu, 4 Jul 2024 13:32:38 +0200 Subject: [PATCH] Recast: improve code readability for calcStaticPathingTableSize --- src/thirdparty/recast/Detour/Include/DetourNavMesh.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/thirdparty/recast/Detour/Include/DetourNavMesh.h b/src/thirdparty/recast/Detour/Include/DetourNavMesh.h index 38f714b1..336ad06e 100644 --- a/src/thirdparty/recast/Detour/Include/DetourNavMesh.h +++ b/src/thirdparty/recast/Detour/Include/DetourNavMesh.h @@ -759,7 +759,7 @@ public: /// @ingroup detour inline int calcStaticPathingTableSize(const int numPolyGroups) { - return sizeof(int)*numPolyGroups*((numPolyGroups+31)/32); + return sizeof(int)*(numPolyGroups*((numPolyGroups+31)/32)); } /// Allocates a navigation mesh object using the Detour allocator.