bugfix - highestOnBit

This commit is contained in:
ikpil 2023-03-17 01:43:25 +09:00
parent 5d0c5db2e7
commit 41c7b777ab
1 changed files with 1 additions and 1 deletions

View File

@ -152,7 +152,7 @@ public class GraphMeshDataReader : ZipBinaryReader {
// See NavmeshBase.cs: ASTAR_RECAST_LARGER_TILES
private int getVertMask(int vertsCount)
{
int vertMask = 1 << highestOneBit((uint)vertsCount);
int vertMask = highestOneBit((uint)vertsCount);
if (vertMask != vertsCount) {
vertMask *= 2;
}