diff options
Diffstat (limited to 'src/mbgl/text/cross_tile_symbol_index.cpp')
-rw-r--r-- | src/mbgl/text/cross_tile_symbol_index.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mbgl/text/cross_tile_symbol_index.cpp b/src/mbgl/text/cross_tile_symbol_index.cpp index 43ed85d957..6863be4bdb 100644 --- a/src/mbgl/text/cross_tile_symbol_index.cpp +++ b/src/mbgl/text/cross_tile_symbol_index.cpp @@ -10,7 +10,7 @@ namespace mbgl { TileLayerIndex::TileLayerIndex(OverscaledTileID coord_, std::vector<SymbolInstance>& symbolInstances, uint32_t bucketInstanceId_) : coord(coord_), bucketInstanceId(bucketInstanceId_) { for (SymbolInstance& symbolInstance : symbolInstances) { - indexedSymbolInstances[symbolInstance.key].emplace_back(symbolInstance.crossTileID, getScaledCoordinates(symbolInstance, coord)); + indexedSymbolInstances[symbolInstance.commonData->key].emplace_back(symbolInstance.crossTileID, getScaledCoordinates(symbolInstance, coord)); } } @@ -33,7 +33,7 @@ void TileLayerIndex::findMatches(std::vector<SymbolInstance>& symbolInstances, c continue; } - auto it = indexedSymbolInstances.find(symbolInstance.key); + auto it = indexedSymbolInstances.find(symbolInstance.commonData->key); if (it == indexedSymbolInstances.end()) { // No symbol with this key in this bucket continue; |