1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-17 00:07:41 +02:00

- H3M parser will create objects that don't have data in map file via

object handler.
- Added large number of missing objects to config
This commit is contained in:
Ivan Savenko
2014-06-25 20:26:47 +03:00
parent 32240da34e
commit 955552488e
5 changed files with 220 additions and 304 deletions

View File

@ -276,8 +276,10 @@ void CObjectClassesHandler::afterLoadFinalization()
std::string CObjectClassesHandler::getObjectName(si32 type) const
{
assert(objects.count(type));
return objects.at(type)->name;
if (objects.count(type))
return objects.at(type)->name;
logGlobal->errorStream() << "Access to non existing object of type " << type;
return "";
}
void AObjectTypeHandler::setType(si32 type, si32 subtype)