diff options
Diffstat (limited to 'src/mbgl/style/style_impl.cpp')
-rw-r--r-- | src/mbgl/style/style_impl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mbgl/style/style_impl.cpp b/src/mbgl/style/style_impl.cpp index 52f39b52d4..25cd122b81 100644 --- a/src/mbgl/style/style_impl.cpp +++ b/src/mbgl/style/style_impl.cpp @@ -293,7 +293,7 @@ void Style::Impl::removeImage(const std::string& id) { auto newImages = makeMutable<ImageImpls>(*images); auto found = std::find_if(newImages->begin(), newImages->end(), [&id](const auto& image) { return image->id == id; }); - if (found == images->end()) { + if (found == newImages->end()) { Log::Warning(Event::General, "Image '%s' is not present in style, cannot remove", id.c_str()); return; } |