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:
parent
eba4f1b514
commit
a77cbc311e
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user