From e07e2bd7d196dec83bfb08e154b2a800c07a1a4a Mon Sep 17 00:00:00 2001 From: Moo0 Date: Mon, 23 May 2011 21:44:02 +0100 Subject: [PATCH] Someone used the wrong variable in a for. --- .../worldguard/protection/regions/ProtectedCuboidRegion.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/sk89q/worldguard/protection/regions/ProtectedCuboidRegion.java b/src/main/java/com/sk89q/worldguard/protection/regions/ProtectedCuboidRegion.java index 92981e59..22187f8b 100644 --- a/src/main/java/com/sk89q/worldguard/protection/regions/ProtectedCuboidRegion.java +++ b/src/main/java/com/sk89q/worldguard/protection/regions/ProtectedCuboidRegion.java @@ -167,7 +167,7 @@ public List getIntersectingRegions(List 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;