From 8caa4d87085ba2cf22a4c7c74909bd51b91df9de Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Mon, 26 Feb 2024 18:49:00 +0000 Subject: [PATCH] Use btree_set in Station::RemoveFromAllNearbyLists --- src/station.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/station.cpp b/src/station.cpp index 00749e381e..d8ae4496ae 100644 --- a/src/station.cpp +++ b/src/station.cpp @@ -29,6 +29,7 @@ #include "linkgraph/linkgraphschedule.h" #include "tracerestrict.h" #include "newgrf_debug.h" +#include "3rdparty/cpp-btree/btree_set.h" #include "table/strings.h" @@ -456,10 +457,10 @@ void Station::RemoveIndustryToDeliver(Industry *ind) */ void Station::RemoveFromAllNearbyLists() { - std::set towns; - std::set industries; + btree::btree_set towns; + btree::btree_set industries; - for (const auto &tile : this->catchment_tiles) { + for (TileIndex tile : this->catchment_tiles) { TileType type = GetTileType(tile); if (type == MP_HOUSE) { towns.insert(GetTownIndex(tile));