1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-10 01:22:25 +01:00

Remove Memory Copy in FileIndex::LoadOrBuild

This commit is contained in:
LRFLEW
2025-06-29 03:53:17 -05:00
parent 118f23aa1c
commit 8819ae34a4

View File

@@ -106,10 +106,10 @@ public:
std::vector<TItem> items;
auto scanResult = Scan();
auto readIndexResult = ReadIndexFile(language, scanResult.Stats);
if (std::get<0>(readIndexResult))
if (readIndexResult.first)
{
// Index was loaded
items = std::get<1>(readIndexResult);
items = std::move(readIndexResult.second);
}
else
{