Use sfl::small_vector for Chunks, only observed a maximum of 16 so far

This commit is contained in:
ζeh Matt committed 2025-04-21 03:16:45 +03:00
1 parent 2adbaffbca
commit 68f6ea8d15
1 file changed
+2 -1
+2 -1
View File
@@ -20,6 +20,7 @@
#include <array>
#include <cstdint>
#include <optional>
#include <sfl/small_vector.hpp>
#include <span>
#include <stack>
#include <type_traits>
@@ -69,7 +70,7 @@ namespace OpenRCT2
IStream* _stream;
Mode _mode;
Header _header;
std::vector<ChunkEntry> _chunks;
sfl::small_vector<ChunkEntry, 32> _chunks;
MemoryStream _buffer;
ChunkEntry _currentChunk;