From ef62688522218c50bed25bd8383e82365d91cdb0 Mon Sep 17 00:00:00 2001 From: truebrain Date: Thu, 15 Jan 2009 18:15:12 +0000 Subject: (svn r15095) -Add [NoAI]: allow AI Libraries to be in .tar files (subdir required, as with AIs -Add [NoAI]: allow multiple versions of the same AI co-exist -Change [NoAI]: updated the whole method of AI (Library) finding and loading; it is now much more clear and transparent -Change [NoAI]: the name of the AI is now the name used by CreateInstance() -Change [NoAI]: make the AI finder a bit more clever, mostly related to version finding --- src/ai/ai_core.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ai/ai_core.cpp') diff --git a/src/ai/ai_core.cpp b/src/ai/ai_core.cpp index ffb2ad04b..406b2ecbd 100644 --- a/src/ai/ai_core.cpp +++ b/src/ai/ai_core.cpp @@ -40,7 +40,7 @@ info = AI::ai_scanner->SelectRandomAI(); assert(info != NULL); /* Load default data and store the name in the settings */ - AIConfig::GetConfig(company)->ChangeAI(info->GetDirName()); + AIConfig::GetConfig(company)->ChangeAI(info->GetInstanceName()); } _current_company = company; -- cgit v1.2.3-54-g00ecf