1
0
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:
ζeh Matt
2025-04-21 03:16:45 +03:00
parent 2adbaffbca
commit 68f6ea8d15

View File

@@ -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;