mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-26 03:52:01 +02:00
Fix.
This commit is contained in:
parent
a638d0cd51
commit
b0c4ea5947
@ -136,11 +136,11 @@ CBonusSystemNode * CArmedInstance::whatShouldBeAttached()
|
||||
void CArmedInstance::writeJsonOptions(JsonNode& json) const
|
||||
{
|
||||
CGObjectInstance::writeJsonOptions(json);
|
||||
CCreatureSet::writeJson(json);
|
||||
CCreatureSet::writeJson(json["army"]);
|
||||
}
|
||||
|
||||
void CArmedInstance::readJsonOptions(const JsonNode& json)
|
||||
{
|
||||
CGObjectInstance::readJsonOptions(json);
|
||||
CCreatureSet::readJson(json);
|
||||
CCreatureSet::readJson(json["army"]);
|
||||
}
|
||||
|
@ -352,9 +352,10 @@ void CGObjectInstance::readJson(const JsonNode & json)
|
||||
pos.z = json["l"].Float();
|
||||
|
||||
appearance.readJson(json["template"], false);
|
||||
readJsonOptions(json["options"]);
|
||||
|
||||
logGlobal->debugStream() <<"Load: [" << pos << "] " << id << " " << ID << " " << subID << " " << typeName << " " << subTypeName;
|
||||
logGlobal->debugStream() <<"Loading: [" << pos << "] " << id << " " << ID << " " << subID << " " << typeName << " " << subTypeName;
|
||||
|
||||
readJsonOptions(json["options"]);
|
||||
}
|
||||
|
||||
void CGObjectInstance::writeJsonOptions(JsonNode & json) const
|
||||
|
Loading…
x
Reference in New Issue
Block a user