[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.
This commit is contained in:
Jason Wray
2016-05-25 17:48:51 -04:00
parent b4de5f472a
commit 842de0e859

View File

@@ -2902,7 +2902,7 @@ mbgl::Duration MGLDurationInSeconds(NSTimeInterval duration)
for (size_t i = 0; i < annotationTags.size(); ++i)
{
MGLAnnotationTag annotationTag = annotationTags[i];
id <MGLAnnotation> annotation = userPoints[i];
id <MGLAnnotation> annotation = userShapes[i];
MGLAnnotationContext context;
context.annotation = annotation;