diff --git a/OsmAnd-java/src/main/java/net/osmand/data/Building.java b/OsmAnd-java/src/main/java/net/osmand/data/Building.java index ec96ee35d6..a1247c4b15 100644 --- a/OsmAnd-java/src/main/java/net/osmand/data/Building.java +++ b/OsmAnd-java/src/main/java/net/osmand/data/Building.java @@ -128,7 +128,8 @@ public class Building extends MapObject { float res = ((float) hint - fch) / (((float) sch - fch)); if (res > 1 || res < -1) { return -1; - } + } + return res; } if (num >= numB) { if (fname.contains("-") && sname == null) {