[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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user