From 842de0e85994c957ffa851149812dbbe32f43cf4 Mon Sep 17 00:00:00 2001 From: Jason Wray Date: Wed, 25 May 2016 17:48:51 -0400 Subject: [PATCH] [ios] Fix points/shapes typo that caused crash (#5142) https://github.com/mapbox/mapbox-gl-native/pull/5097 introduced different arrays for points and shapes, but only ever attempted to use the points array. Adding a shape would crash. --- platform/ios/src/MGLMapView.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/ios/src/MGLMapView.mm b/platform/ios/src/MGLMapView.mm index dffc1add4..a928941b6 100644 --- a/platform/ios/src/MGLMapView.mm +++ b/platform/ios/src/MGLMapView.mm @@ -2902,7 +2902,7 @@ mbgl::Duration MGLDurationInSeconds(NSTimeInterval duration) for (size_t i = 0; i < annotationTags.size(); ++i) { MGLAnnotationTag annotationTag = annotationTags[i]; - id annotation = userPoints[i]; + id annotation = userShapes[i]; MGLAnnotationContext context; context.annotation = annotation;