mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Value copy / allocation optimizations mostly in server, SAO and serialize code
This commit is contained in:
parent
2fd5f38c45
commit
471e567657
16 changed files with 52 additions and 64 deletions
|
@ -130,7 +130,7 @@ void ToolCapabilities::serializeJson(std::ostream &os) const
|
|||
root["punch_attack_uses"] = punch_attack_uses;
|
||||
|
||||
Json::Value groupcaps_object;
|
||||
for (auto groupcap : groupcaps) {
|
||||
for (const auto &groupcap : groupcaps) {
|
||||
groupcap.second.toJson(groupcaps_object[groupcap.first]);
|
||||
}
|
||||
root["groupcaps"] = groupcaps_object;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue