mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-21 00:19:29 +02:00
Fixed "Long Live the King", 1st scenario victory condition
This commit is contained in:
@ -388,12 +388,11 @@ void MetaString::jsonDeserialize(const JsonNode & source)
|
||||
|
||||
void MetaString::serializeJson(JsonSerializeFormat & handler)
|
||||
{
|
||||
JsonNode attr;
|
||||
if(handler.saving)
|
||||
jsonSerialize(attr);
|
||||
handler.serializeRaw("attributes", attr, std::nullopt);
|
||||
jsonSerialize(const_cast<JsonNode&>(handler.getCurrent()));
|
||||
|
||||
if(!handler.saving)
|
||||
jsonDeserialize(attr);
|
||||
jsonDeserialize(handler.getCurrent());
|
||||
}
|
||||
|
||||
VCMI_LIB_NAMESPACE_END
|
||||
|
Reference in New Issue
Block a user