浏览代码

Fixed CID 1366431, CID 1366430

AlexVinS 9 年之前
父节点
当前提交
478890df5f
共有 1 个文件被更改,包括 0 次插入3 次删除
  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;
 	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;