mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-23 22:37:55 +02:00
replace RESOURCE_QUANTITY where possible
This commit is contained in:
@@ -299,7 +299,7 @@ JsonRandom::JsonRandom(IGameInfoCallback * cb, IGameRandomizer & gameRandomizer)
|
||||
return ret;
|
||||
}
|
||||
|
||||
for (size_t i=0; i<GameConstants::RESOURCE_QUANTITY; i++)
|
||||
for(auto & i : LIBRARY->resourceTypeHandler->getAllObjects())
|
||||
{
|
||||
ret[i] = loadValue(value[LIBRARY->resourceTypeHandler->getById(i)->getJsonKey()], variables);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user