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; }