1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-06 09:09:40 +02:00

Fixed CID 1366431, CID 1366430

This commit is contained in:
AlexVinS
2016-12-05 02:55:05 +03:00
parent d003abea6f
commit 478890df5f

View File

@@ -259,7 +259,6 @@ TObjectTypeHandler CObjectClassesHandler::getHandlerFor(si32 type, si32 subtype)
} }
logGlobal->errorStream() << "Failed to find object of type " << type << ":" << subtype; logGlobal->errorStream() << "Failed to find object of type " << type << ":" << subtype;
throw std::runtime_error("Object type handler not found"); throw std::runtime_error("Object type handler not found");
return nullptr;
} }
TObjectTypeHandler CObjectClassesHandler::getHandlerFor(std::string type, std::string subtype) const TObjectTypeHandler CObjectClassesHandler::getHandlerFor(std::string type, std::string subtype) const
@@ -272,10 +271,8 @@ TObjectTypeHandler CObjectClassesHandler::getHandlerFor(std::string type, std::s
} }
logGlobal->errorStream() << "Failed to find object of type " << type << ":" << subtype; logGlobal->errorStream() << "Failed to find object of type " << type << ":" << subtype;
throw std::runtime_error("Object type handler not found"); throw std::runtime_error("Object type handler not found");
return nullptr;
} }
std::set<si32> CObjectClassesHandler::knownObjects() const std::set<si32> CObjectClassesHandler::knownObjects() const
{ {
std::set<si32> ret; std::set<si32> ret;