mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
attempt to fix hero placeholder while reading h3m
This commit is contained in:
@@ -343,7 +343,7 @@ TObjectTypeHandler CObjectClassesHandler::getHandlerFor(MapObjectID type, MapObj
|
||||
return objects.front()->objects.front();
|
||||
|
||||
auto subID = subtype.getNum();
|
||||
if (type == Obj::PRISON)
|
||||
if (type == Obj::PRISON || type == Obj::HERO_PLACEHOLDER)
|
||||
subID = 0;
|
||||
auto result = objects.at(type.getNum())->objects.at(subID);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user