summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2009-08-08 22:09:53 +0000
committeryexo <yexo@openttd.org>2009-08-08 22:09:53 +0000
commit5d0ae8ad47371cd8789d2f7bf905958a2273a8dd (patch)
tree48049f92894c89fcb2553b756069f6a395d40a8a
parent13e23141b418214db51e1463bb3696a4e6d87129 (diff)
downloadopenttd-5d0ae8ad47371cd8789d2f7bf905958a2273a8dd.tar.xz
(svn r17125) -Cleanup: remove an unused variable
-rw-r--r--src/ai/ai_instance.cpp3
-rw-r--r--src/ai/ai_instance.hpp2
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;