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

Something that compiles.

This commit is contained in:
DjWarmonger
2014-06-26 22:05:27 +02:00
73 changed files with 942 additions and 951 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)