mirror of
https://github.com/vcmi/vcmi.git
synced 2025-12-05 23:28:14 +02:00
Remove most of non-const access to VLC entities
This commit is contained in:
@@ -991,7 +991,7 @@ void CTownHandler::loadTown(CTown * town, const JsonNode & source)
|
||||
|
||||
VLC->identifiers()->requestIdentifier(node.second.meta, "heroClass",node.first, [=](si32 classID)
|
||||
{
|
||||
VLC->heroh->classes[HeroClassID(classID)]->selectionProbability[town->faction->getId()] = chance;
|
||||
VLC->heroclassesh->objects[classID]->selectionProbability[town->faction->getId()] = chance;
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user