1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-03-25 21:38:59 +02:00

Rename fields

This commit is contained in:
nordsoft 2023-04-08 01:25:32 +04:00 committed by Nordsoft91
parent b40a3a1b14
commit ab7d316c3f

View File

@ -57,14 +57,12 @@ namespace JsonRandom
if (!value["type"].isNull())
return value["type"].String();
if(!value["list"].isNull())
{
return RandomGeneratorUtil::nextItem(value["list"].Vector(), rng)->String();
}
if(!value["anyOf"].isNull())
return RandomGeneratorUtil::nextItem(value["anyOf"].Vector(), rng)->String();
if(!value["except"].isNull())
if(!value["noneOf"].isNull())
{
for(auto & s : value["except"].Vector())
for(auto & s : value["noneOf"].Vector())
valuesSet.erase(s.String());
}