1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-06 09:09:40 +02:00

Fixed mapping of hota objects

This commit is contained in:
Ivan Savenko
2023-05-25 19:35:21 +03:00
parent 952708e865
commit 312b703a78
6 changed files with 17 additions and 5 deletions

View File

@@ -922,8 +922,7 @@ void CMapLoaderH3M::readObjectTemplates()
// Read custom defs
for(int defID = 0; defID < defAmount; ++defID)
{
auto tmpl = std::make_shared<ObjectTemplate>();
tmpl->readMap(reader->getInternalReader());
auto tmpl = reader->readObjectTemplate();
templates.push_back(tmpl);
if (!CResourceHandler::get()->existsResource(ResourceID( "SPRITES/" + tmpl->animationFile, EResType::ANIMATION)))