Browse Source

Fixed CID 1366431, CID 1366430

AlexVinS 9 years ago
parent
commit
478890df5f
1 changed files with 0 additions and 3 deletions
  1. 0 3
      lib/mapObjects/CObjectClassesHandler.cpp

+ 0 - 3
lib/mapObjects/CObjectClassesHandler.cpp

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