1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-15 00:05:02 +02:00

Fixed several scenarios with incorrect scope for requesting identifiers

This commit is contained in:
Ivan Savenko
2022-12-21 12:58:40 +02:00
committed by Nordsoft91
parent 5f8cfadc4d
commit 23cb47b457
3 changed files with 3 additions and 3 deletions

View File

@ -1413,7 +1413,7 @@ void CGHeroInstance::setHeroTypeName(const std::string & identifier)
{
if(ID == Obj::HERO || ID == Obj::PRISON)
{
auto rawId = VLC->modh->identifiers.getIdentifier(CModHandler::scopeBuiltin(), "hero", identifier);
auto rawId = VLC->modh->identifiers.getIdentifier(CModHandler::scopeMap(), "hero", identifier);
if(rawId)
subID = rawId.get();