mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-15 00:05:02 +02:00
Cleanup
This commit is contained in:
@ -354,7 +354,7 @@ void ObjectTemplate::writeJson(JsonNode & node, const bool withTerrain) const
|
||||
JsonVector & data = node["allowedTerrains"].Vector();
|
||||
|
||||
for(auto type : allowedTerrains)
|
||||
data.push_back(JsonNode(VLC->terrainTypeHandler->getById(type)->getJsonKey()));
|
||||
data.emplace_back(VLC->terrainTypeHandler->getById(type)->getJsonKey());
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user