mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-23 22:37:55 +02:00
Fixed mapping of hota objects
This commit is contained in:
@@ -54,8 +54,8 @@ void MapIdentifiersH3M::loadMapping(const JsonNode & mapping)
|
||||
|
||||
for (auto entryTemplate : mapping["templates"].Struct())
|
||||
{
|
||||
std::string h3mName = entryTemplate.second.String();
|
||||
std::string vcmiName = entryTemplate.first;
|
||||
std::string h3mName = boost::to_lower_copy(entryTemplate.second.String());
|
||||
std::string vcmiName = boost::to_lower_copy(entryTemplate.first);
|
||||
|
||||
if (!CResourceHandler::get()->existsResource(ResourceID( "SPRITES/" + vcmiName, EResType::ANIMATION)))
|
||||
logMod->warn("Template animation file %s was not found!", vcmiName);
|
||||
|
||||
Reference in New Issue
Block a user