mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-10 17:42:29 +01:00
Use sfl::small_vector for Chunks, only observed a maximum of 16 so far
This commit is contained in:
@@ -20,6 +20,7 @@
|
|||||||
#include <array>
|
#include <array>
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
#include <optional>
|
#include <optional>
|
||||||
|
#include <sfl/small_vector.hpp>
|
||||||
#include <span>
|
#include <span>
|
||||||
#include <stack>
|
#include <stack>
|
||||||
#include <type_traits>
|
#include <type_traits>
|
||||||
@@ -69,7 +70,7 @@ namespace OpenRCT2
|
|||||||
IStream* _stream;
|
IStream* _stream;
|
||||||
Mode _mode;
|
Mode _mode;
|
||||||
Header _header;
|
Header _header;
|
||||||
std::vector<ChunkEntry> _chunks;
|
sfl::small_vector<ChunkEntry, 32> _chunks;
|
||||||
MemoryStream _buffer;
|
MemoryStream _buffer;
|
||||||
ChunkEntry _currentChunk;
|
ChunkEntry _currentChunk;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user