Someone used the wrong variable in a for.

This commit is contained in:
Moo0 2011-05-23 21:44:02 +01:00
parent 88acbe655d
commit e07e2bd7d1

View File

@ -167,7 +167,7 @@ public List<ProtectedRegion> getIntersectingRegions(List<ProtectedRegion> region
// Check whether the other regions points are inside the current region
if (region instanceof ProtectedPolygonalRegion) {
for (i2 = 0; i < ((ProtectedPolygonalRegion)region).getPoints().size(); i++) {
for (i2 = 0; i2 < ((ProtectedPolygonalRegion)region).getPoints().size(); i2++) {
BlockVector2D pt2Dr = ((ProtectedPolygonalRegion)region).getPoints().get(i2);
int minYr = ((ProtectedPolygonalRegion)region).minY;
int maxYr = ((ProtectedPolygonalRegion)region).maxY;