Replace remaining uses of std::deque with ring buffers

Cargo packet lists and associated save/load
This commit is contained in:
Jonathan G Rennison
2023-08-19 14:01:06 +01:00
parent b59a8dc21c
commit 23ad010d70
10 changed files with 120 additions and 121 deletions

View File

@@ -19,7 +19,7 @@
#include "company_type.h"
#include "core/multimap.hpp"
#include "sl/saveload_common.h"
#include <deque>
#include "core/ring_buffer.hpp"
/** Unique identifier for a single cargo packet. */
typedef uint32 CargoPacketID;
@@ -296,7 +296,7 @@ public:
void InvalidateCache();
};
typedef std::deque<CargoPacket *> CargoPacketList;
typedef ring_buffer<CargoPacket *> CargoPacketList;
/**
* CargoList that is used for vehicles.