Recast: improve code readability for calcStaticPathingTableSize

This commit is contained in:
Kawe Mazidjatari 2024-07-04 13:32:38 +02:00
parent 00ec2c41e2
commit 3c8dc10b50

View File

@ -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.