diff --git a/OsmAnd-java/src/main/java/net/osmand/binary/RouteDataObject.java b/OsmAnd-java/src/main/java/net/osmand/binary/RouteDataObject.java index 5d0f842021..602a2f1682 100644 --- a/OsmAnd-java/src/main/java/net/osmand/binary/RouteDataObject.java +++ b/OsmAnd-java/src/main/java/net/osmand/binary/RouteDataObject.java @@ -584,7 +584,7 @@ public class RouteDataObject { int ks; for (ks = 0; ks < pointTypes[i].length; ks++) { RouteTypeRule toReplace = region.quickGetEncodingRule(pointTypes[i][ks]); - if (toReplace != null && toReplace.getNonConditionalTag().contentEquals(nonCondTag)) { + if (toReplace != null && toReplace.getTag().contentEquals(nonCondTag)) { break; } }