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.