From 37d8a9eee88c8254ef9f6f37703bb710c446c1c7 Mon Sep 17 00:00:00 2001 From: nazar-kutz Date: Sat, 6 Mar 2021 02:12:54 +0200 Subject: [PATCH] small refactoring --- OsmAnd-java/src/main/java/net/osmand/map/OsmandRegions.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/OsmAnd-java/src/main/java/net/osmand/map/OsmandRegions.java b/OsmAnd-java/src/main/java/net/osmand/map/OsmandRegions.java index 388572bd58..f014a4fc8b 100644 --- a/OsmAnd-java/src/main/java/net/osmand/map/OsmandRegions.java +++ b/OsmAnd-java/src/main/java/net/osmand/map/OsmandRegions.java @@ -478,10 +478,8 @@ public class OsmandRegions { if (object.getPointsLength() > 1) { for (int i = 1; i < object.getPointsLength(); i++) { - int tileX = object.getPoint31XTile(i); - int tileY = object.getPoint31YTile(i); - currentX = tileX; - currentY = tileY; + currentX = object.getPoint31XTile(i); + currentY = object.getPoint31YTile(i); if (currentX > maxX) { maxX = currentX; } else if (currentX < minX) {