1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

Refactoring of ObjectClassesHandler

This commit is contained in:
Ivan Savenko
2022-12-31 15:01:19 +02:00
parent c5f72ccdc7
commit 6c472339ce
14 changed files with 237 additions and 314 deletions

View File

@@ -172,7 +172,7 @@ namespace TriggeredEventsDetail
{
si32 subtype = *subtypes.begin();
auto handler = VLC->objtypeh->getHandlerFor(type, subtype);
identifier = handler->typeName;
identifier = handler->getTypeName();
}
}
break;
@@ -1141,7 +1141,7 @@ void CMapLoaderJson::MapObjectLoader::construct()
pos.z = static_cast<si32>(configuration["l"].Float());
//special case for grail
if(typeName == "grail")
if(typeName == "grail")
{
owner->map->grailPos = pos;