(svn r23368) -Codechange: move FindLibrary down a few layers, so there is no layer violation anymore

This commit is contained in:
truebrain
2011-11-29 23:27:08 +00:00
parent 880f377fa6
commit e0d4c75cf4
4 changed files with 16 additions and 2 deletions

View File

@@ -18,6 +18,7 @@
#include "ai_config.hpp"
#include "ai_gui.hpp"
#include "ai.hpp"
#include "../script/script_fatalerror.hpp"
#include "../script/script_suspend.hpp"
@@ -240,6 +241,11 @@ int AIInstance::GetSetting(const char *name)
return AIConfig::GetConfig(_current_company)->GetSetting(name);
}
ScriptInfo *AIInstance::FindLibrary(const char *library, int version)
{
return (ScriptInfo *)AI::FindLibrary(library, version);
}
/**
* DoCommand callback function for all commands executed by AIs.
* @param result The result of the command.