mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-15 00:05:02 +02:00
Map/Road/River identifiers are now private members
This commit is contained in:
@ -360,7 +360,7 @@ void ObjectTemplate::writeJson(JsonNode & node, const bool withTerrain) const
|
||||
for(auto type : allowedTerrains)
|
||||
{
|
||||
JsonNode value(JsonNode::JsonType::DATA_STRING);
|
||||
value.String() = VLC->terrainTypeHandler->getById(type)->identifier;
|
||||
value.String() = VLC->terrainTypeHandler->getById(type)->getName();
|
||||
data.push_back(value);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user