mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-10 09:32:29 +01:00
Remove Memory Copy in FileIndex::LoadOrBuild
This commit is contained in:
@@ -106,10 +106,10 @@ public:
|
|||||||
std::vector<TItem> items;
|
std::vector<TItem> items;
|
||||||
auto scanResult = Scan();
|
auto scanResult = Scan();
|
||||||
auto readIndexResult = ReadIndexFile(language, scanResult.Stats);
|
auto readIndexResult = ReadIndexFile(language, scanResult.Stats);
|
||||||
if (std::get<0>(readIndexResult))
|
if (readIndexResult.first)
|
||||||
{
|
{
|
||||||
// Index was loaded
|
// Index was loaded
|
||||||
items = std::get<1>(readIndexResult);
|
items = std::move(readIndexResult.second);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user