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

Commit a70b33b

Browse files
committed
[core] Fix crash at Placement::getSymbolPlacement()
1 parent 45c0dd8 commit a70b33b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mbgl/text/placement.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1235,7 +1235,7 @@ float Placement::zoomAdjustment(const float zoom) const {
12351235
const JointPlacement* Placement::getSymbolPlacement(const SymbolInstance& symbol) const {
12361236
assert(symbol.crossTileID != 0);
12371237
auto found = placements.find(symbol.crossTileID);
1238-
return (found == placements.end()) ? &found->second : nullptr;
1238+
return (found != placements.end()) ? &found->second : nullptr;
12391239
}
12401240

12411241
Duration Placement::getUpdatePeriod(const float zoom) const {

0 commit comments

Comments
 (0)