From 3bd2d0e4d7d52dc88d30081922e1708f0d5a4bcf Mon Sep 17 00:00:00 2001 From: Mikhail Pozdnyakov Date: Tue, 11 Feb 2020 12:12:57 +0200 Subject: style::Style::getImage() returns optional --- platform/darwin/src/MGLStyle.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'platform/darwin') diff --git a/platform/darwin/src/MGLStyle.mm b/platform/darwin/src/MGLStyle.mm index cab0eaae28..6a496dc3c0 100644 --- a/platform/darwin/src/MGLStyle.mm +++ b/platform/darwin/src/MGLStyle.mm @@ -528,7 +528,7 @@ static_assert(6 == mbgl::util::default_styles::numOrderedStyles, } auto styleImage = self.rawStyle->getImage([name UTF8String]); - return styleImage ? [[MGLImage alloc] initWithMGLStyleImage:styleImage] : nil; + return styleImage ? [[MGLImage alloc] initWithMGLStyleImage:&(*styleImage)] : nil; } #pragma mark Style transitions -- cgit v1.2.1