1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-15 00:05:02 +02:00

Small (temp) fix. Prevent nulls from serialization.

This commit is contained in:
AlexVinS
2015-11-14 19:47:29 +03:00
parent 2d5a366e6c
commit 2d777ea676
3 changed files with 8 additions and 6 deletions

View File

@ -362,7 +362,7 @@ void CGObjectInstance::readJson(const JsonNode & json, bool withState)
void CGObjectInstance::writeJsonOptions(JsonNode & json) const
{
json.setType(JsonNode::DATA_STRUCT);
}
void CGObjectInstance::readJsonOptions(const JsonNode & json)
@ -372,7 +372,7 @@ void CGObjectInstance::readJsonOptions(const JsonNode & json)
void CGObjectInstance::writeJsonState(JsonNode & json) const
{
json.setType(JsonNode::DATA_STRUCT);
}
void CGObjectInstance::readJsonState(const JsonNode & json)