mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Replaced vector of strings with simple bool for flag
This commit is contained in:
@@ -223,7 +223,7 @@ void JsonUtils::merge(JsonNode & dest, JsonNode & source, bool ignoreOverride, b
|
||||
}
|
||||
case JsonNode::JsonType::DATA_STRUCT:
|
||||
{
|
||||
if(!ignoreOverride && vstd::contains(source.flags, "override"))
|
||||
if(!ignoreOverride && source.getOverrideFlag())
|
||||
{
|
||||
std::swap(dest, source);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user