forked from bit/DotRecastNetSim
bugfix - highestOnBit
This commit is contained in:
parent
5d0c5db2e7
commit
41c7b777ab
|
@ -152,7 +152,7 @@ public class GraphMeshDataReader : ZipBinaryReader {
|
||||||
// See NavmeshBase.cs: ASTAR_RECAST_LARGER_TILES
|
// See NavmeshBase.cs: ASTAR_RECAST_LARGER_TILES
|
||||||
private int getVertMask(int vertsCount)
|
private int getVertMask(int vertsCount)
|
||||||
{
|
{
|
||||||
int vertMask = 1 << highestOneBit((uint)vertsCount);
|
int vertMask = highestOneBit((uint)vertsCount);
|
||||||
if (vertMask != vertsCount) {
|
if (vertMask != vertsCount) {
|
||||||
vertMask *= 2;
|
vertMask *= 2;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue