Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
[ios] Fix points/shapes typo that caused crash (#5142)
Browse files Browse the repository at this point in the history
#5097 introduced different arrays for points and shapes, but only ever attempted to use the points array. Adding a shape would crash.
  • Loading branch information
friedbunny committed May 25, 2016
1 parent b4de5f4 commit 842de0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platform/ios/src/MGLMapView.mm
Original file line number Diff line number Diff line change
Expand Up @@ -2902,7 +2902,7 @@ - (void)addAnnotations:(NS_ARRAY_OF(id <MGLAnnotation>) *)annotations
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;
Expand Down

0 comments on commit 842de0e

Please sign in to comment.