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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user