diff --git a/OsmAnd/src/net/osmand/plus/MapMarkersHelper.java b/OsmAnd/src/net/osmand/plus/MapMarkersHelper.java index 42af437e11..9873a067e3 100644 --- a/OsmAnd/src/net/osmand/plus/MapMarkersHelper.java +++ b/OsmAnd/src/net/osmand/plus/MapMarkersHelper.java @@ -343,7 +343,7 @@ public class MapMarkersHelper { } if (colorIndex == -1) { if (sortedMapMarkers.size() > 0) { - colorIndex = (sortedMapMarkers.get(sortedMapMarkers.size() - 1).colorIndex + 1) % MAP_MARKERS_COLORS_COUNT; + colorIndex = (sortedMapMarkers.get(0).colorIndex + 1) % MAP_MARKERS_COLORS_COUNT; } else { colorIndex = 0; }