Explorar el Código

NK2AI::AIGateway in CDynLibHandler.cpp

Mircea TheHonestCTO hace 3 meses
padre
commit
57949d8323
Se han modificado 1 ficheros con 4 adiciones y 1 borrados
  1. 4 1
      lib/callback/CDynLibHandler.cpp

+ 4 - 1
lib/callback/CDynLibHandler.cpp

@@ -106,7 +106,10 @@ VCMI_LIB_NAMESPACE_BEGIN
 template<>
 std::shared_ptr<CGlobalAI> createAny(const boost::filesystem::path & libpath, const std::string & methodName)
 {
-	if(libpath.stem() == "libNullkiller") {
+	if(libpath.stem() == "libNullkiller2") {
+		return std::make_shared<NK2AI::AIGateway>();
+	}
+	else if(libpath.stem() == "libNullkiller") {
 		return std::make_shared<NKAI::AIGateway>();
 	}
 	else{