瀏覽代碼

Android fix

karol57 11 年之前
父節點
當前提交
864fa0388f
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      lib/CGameInterface.cpp

+ 3 - 3
lib/CGameInterface.cpp

@@ -47,17 +47,17 @@ shared_ptr<rett> createAny(const boost::filesystem::path& libpath, const std::st
 #ifdef VCMI_ANDROID
 	// this is awful but it seems using shared libraries on some devices is even worse
 	const std::string filename = libpath.filename().string();
-	if (filename != "libVCAI.so")
+	if (filename == "libVCAI.so")
 	{
 		getName = (TGetNameFun)VCAI_GetAiName;
 		getAI = (TGetAIFun)VCAI_GetNewAI;
 	}
-	else if (filename != "libStupidAI.so")
+	else if (filename == "libStupidAI.so")
 	{
 		getName = (TGetNameFun)StupidAI_GetAiName;
 		getAI = (TGetAIFun)StupidAI_GetNewBattleAI;
 	}
-	else if (filename != "libBattleAI.so")
+	else if (filename == "libBattleAI.so")
 	{
 		getName = (TGetNameFun)BattleAI_GetAiName;
 		getAI = (TGetAIFun)BattleAI_GetNewBattleAI;