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:
@ -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)
|
||||
|
Reference in New Issue
Block a user