From 41c7b777ab3239c8b3f1e9e0eef9e291bf05784a Mon Sep 17 00:00:00 2001 From: ikpil Date: Fri, 17 Mar 2023 01:43:25 +0900 Subject: [PATCH] bugfix - highestOnBit --- src/DotRecast.Detour.Extras/Unity/Astar/GraphMeshDataReader.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DotRecast.Detour.Extras/Unity/Astar/GraphMeshDataReader.cs b/src/DotRecast.Detour.Extras/Unity/Astar/GraphMeshDataReader.cs index 0196567..124578e 100644 --- a/src/DotRecast.Detour.Extras/Unity/Astar/GraphMeshDataReader.cs +++ b/src/DotRecast.Detour.Extras/Unity/Astar/GraphMeshDataReader.cs @@ -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; }