1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-17 00:07:41 +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

@ -62,7 +62,7 @@ namespace GameConstants
si32 HeroTypeID::decode(const std::string & identifier)
{
auto rawId = VLC->modh->identifiers.getIdentifier(CModHandler::scopeBuiltin(), "hero", identifier);
auto rawId = VLC->modh->identifiers.getIdentifier(CModHandler::scopeMap(), "hero", identifier);
if(rawId)
return rawId.get();
else