mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-15 00:05:02 +02:00
Remove most of non-const access to VLC entities
This commit is contained in:
@ -122,7 +122,7 @@ void CHeroInstanceConstructor::initTypeData(const JsonNode & input)
|
||||
VLC->identifiers()->requestIdentifier(
|
||||
"heroClass",
|
||||
input["heroClass"],
|
||||
[&](si32 index) { heroClass = VLC->heroh->classes[index]; });
|
||||
[&](si32 index) { heroClass = HeroClassID(index).toHeroClass(); });
|
||||
|
||||
filtersJson = input["filters"];
|
||||
}
|
||||
|
Reference in New Issue
Block a user