mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
introduce toResourceType
This commit is contained in:
@@ -301,7 +301,7 @@ JsonRandom::JsonRandom(IGameInfoCallback * cb, IGameRandomizer & gameRandomizer)
|
||||
|
||||
for(auto & i : LIBRARY->resourceTypeHandler->getAllObjects())
|
||||
{
|
||||
ret[i] = loadValue(value[LIBRARY->resourceTypeHandler->getById(i)->getJsonKey()], variables);
|
||||
ret[i] = loadValue(value[i.toResource()->getJsonKey()], variables);
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user