mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Use toEntity/toXXX methods in Identifier instead VLC objects access
This commit is contained in:
@@ -171,10 +171,10 @@ namespace TriggeredEventsDetail
|
||||
case EMetaclass::OBJECT:
|
||||
{
|
||||
//TODO
|
||||
std::set<si32> subtypes = VLC->objtypeh->knownSubObjects(type);
|
||||
auto subtypes = VLC->objtypeh->knownSubObjects(type);
|
||||
if(!subtypes.empty())
|
||||
{
|
||||
si32 subtype = *subtypes.begin();
|
||||
auto subtype = *subtypes.begin();
|
||||
auto handler = VLC->objtypeh->getHandlerFor(type, subtype);
|
||||
identifier = handler->getTypeName();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user