mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-06 09:09:40 +02:00
Merge pull request #3118 from rilian-la-te/glamor-slight-bonus-fixes
Small bonus fixes
This commit is contained in:
@@ -1156,7 +1156,7 @@ CSelector JsonUtils::parseSelector(const JsonNode & ability)
|
||||
{
|
||||
CSelector base = Selector::none;
|
||||
for(const auto & andN : value->Vector())
|
||||
base.Or(parseSelector(andN));
|
||||
base = base.Or(parseSelector(andN));
|
||||
|
||||
ret = ret.And(base);
|
||||
}
|
||||
@@ -1166,7 +1166,7 @@ CSelector JsonUtils::parseSelector(const JsonNode & ability)
|
||||
{
|
||||
CSelector base = Selector::none;
|
||||
for(const auto & andN : value->Vector())
|
||||
base.Or(parseSelector(andN));
|
||||
base = base.Or(parseSelector(andN));
|
||||
|
||||
ret = ret.And(base.Not());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user