diff options
author | yexo <yexo@openttd.org> | 2009-08-08 22:09:53 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2009-08-08 22:09:53 +0000 |
commit | 5d0ae8ad47371cd8789d2f7bf905958a2273a8dd (patch) | |
tree | 48049f92894c89fcb2553b756069f6a395d40a8a /src/ai | |
parent | 13e23141b418214db51e1463bb3696a4e6d87129 (diff) | |
download | openttd-5d0ae8ad47371cd8789d2f7bf905958a2273a8dd.tar.xz |
(svn r17125) -Cleanup: remove an unused variable
Diffstat (limited to 'src/ai')
-rw-r--r-- | src/ai/ai_instance.cpp | 3 | ||||
-rw-r--r-- | src/ai/ai_instance.hpp | 2 |
2 files changed, 0 insertions, 5 deletions
diff --git a/src/ai/ai_instance.cpp b/src/ai/ai_instance.cpp index c79ea0d34..f5a78e269 100644 --- a/src/ai/ai_instance.cpp +++ b/src/ai/ai_instance.cpp @@ -80,8 +80,6 @@ #undef DEFINE_SCRIPT_FILES -/* static */ AIInstance *AIInstance::current_instance = NULL; - AIStorage::~AIStorage() { /* Free our pointers */ @@ -108,7 +106,6 @@ AIInstance::AIInstance(AIInfo *info) : { /* Set the instance already, so we can use AIObject::Set commands */ Company::Get(_current_company)->ai_instance = this; - AIInstance::current_instance = this; this->controller = new AIController(); this->storage = new AIStorage(); diff --git a/src/ai/ai_instance.hpp b/src/ai/ai_instance.hpp index 4c9cb69a5..41653dba1 100644 --- a/src/ai/ai_instance.hpp +++ b/src/ai/ai_instance.hpp @@ -114,8 +114,6 @@ public: static void LoadEmpty(); private: - static class AIInstance *current_instance; //!< Static current AIInstance, so we can register AIs. - class AIController *controller; class AIStorage *storage; class Squirrel *engine; |