mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Fix resource creation
This commit is contained in:
@@ -984,7 +984,7 @@ void CMapLoaderH3M::readObjectTemplates()
|
||||
auto tmpl = reader->readObjectTemplate();
|
||||
templates.push_back(tmpl);
|
||||
|
||||
if (!CResourceHandler::get()->existsResource(tmpl->animationFile))
|
||||
if (!CResourceHandler::get()->existsResource(tmpl->animationFile.addPrefix("SPRITES/")))
|
||||
logMod->warn("Template animation %s of type (%d %d) is missing!", tmpl->animationFile.getOriginalName(), tmpl->id, tmpl->subid );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user