1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-23 12:14:11 +01:00

Codefix: move or pass by reference instead of copy

This commit is contained in:
Rubidium
2025-03-13 20:28:29 +01:00
committed by rubidium42
parent 754311a779
commit 18e1440947
3 changed files with 3 additions and 3 deletions

View File

@@ -91,7 +91,7 @@ bool ScriptAdminMakeJSON(nlohmann::json &json, HSQUIRRELVM vm, SQInteger index,
return false;
}
json[key] = std::move(value);
json[std::move(key)] = std::move(value);
}
sq_pop(vm, 1);
return true;