1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-26 03:52:01 +02:00

Update JsonSerializer.cpp

This commit is contained in:
Mikko 2019-01-24 14:49:30 +00:00 committed by GitHub
parent eba4f1b514
commit a77cbc311e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,7 +21,7 @@ JsonSerializer::JsonSerializer(const IInstanceResolver * instanceResolver_, Json
void JsonSerializer::serializeInternal(const std::string & fieldName, boost::logic::tribool & value)
{
if(!boost::logic::indeterminate(value))
currentObject->operator[](fieldName).Bool() = value;
currentObject->operator[](fieldName).Bool() = (bool)value;
}
void JsonSerializer::serializeInternal(const std::string & fieldName, si32 & value, const boost::optional<si32> & defaultValue, const TDecoder & decoder, const TEncoder & encoder)