Change container type for several uses of std::map/std::set

This commit is contained in:
Jonathan G Rennison
2024-05-30 18:16:13 +01:00
parent 853ed272be
commit 56356bb761
11 changed files with 36 additions and 26 deletions

View File

@@ -25,6 +25,7 @@
#include "../economy_base.h"
#include "../event_logs.h"
#include "../3rdparty/cpp-btree/btree_map.h"
#include "../3rdparty/robin_hood/robin_hood.h"
#include "../core/format.hpp"
#include "saveload.h"
@@ -296,7 +297,7 @@ void AfterLoadVehicles(bool part_of_load)
* a) both next_shared and previous_shared are not set for pre 5,2 games
* b) both next_shared and previous_shared are set for later games
*/
std::map<Order*, OrderList*> mapping;
robin_hood::unordered_flat_map<Order*, OrderList*> mapping;
for (Vehicle *v : Vehicle::Iterate()) {
si_v = v;