diff options
Diffstat (limited to 'src/ai/api/ai_controller.cpp')
-rw-r--r-- | src/ai/api/ai_controller.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ai/api/ai_controller.cpp b/src/ai/api/ai_controller.cpp index d11a2add5..f783bbabb 100644 --- a/src/ai/api/ai_controller.cpp +++ b/src/ai/api/ai_controller.cpp @@ -56,12 +56,12 @@ AIController::~AIController() this->loaded_library.clear(); } -uint AIController::GetTick() +/* static */ uint AIController::GetTick() { - return this->ticks; + return ::GetCompany(_current_company)->ai_instance->GetController()->ticks; } -int AIController::GetSetting(const char *name) +/* static */ int AIController::GetSetting(const char *name) { return AIConfig::GetConfig(_current_company)->GetSetting(name); } |