Fix pathing grid issue on certain maps

This commit is contained in:
Retera 2020-07-05 15:10:24 -04:00
parent b2900f50fc
commit d5a1ee643d

View File

@ -90,7 +90,7 @@ public class PathingGrid {
public boolean contains(final float x, final float y) {
final int cellX = getCellX(x);
final int cellY = getCellY(y);
return (cellX >= 0) && (cellY >= 0) && (cellX < this.pathingGrid[0]) && (cellY < this.pathingGrid[1]);
return (cellX >= 0) && (cellY >= 0) && (cellX < this.pathingGridSizes[0]) && (cellY < this.pathingGridSizes[1]);
}
public short getPathing(final float x, final float y) {