summaryrefslogtreecommitdiff
path: root/src/ai/api/ai_subsidylist.cpp
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2009-07-01 18:45:05 +0000
committersmatz <smatz@openttd.org>2009-07-01 18:45:05 +0000
commit76a50ce94dc7c78d76c309d8a639591fed2a2da8 (patch)
tree342be7030b9760781f886bca89cbe01863985008 /src/ai/api/ai_subsidylist.cpp
parentaaeb53066dff98cac2d66d1f02f545d14c9f650c (diff)
downloadopenttd-76a50ce94dc7c78d76c309d8a639591fed2a2da8.tar.xz
(svn r16714) -Codechange: use pool-like accessors for Subsidy
Diffstat (limited to 'src/ai/api/ai_subsidylist.cpp')
-rw-r--r--src/ai/api/ai_subsidylist.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ai/api/ai_subsidylist.cpp b/src/ai/api/ai_subsidylist.cpp
index d372b4b2f..430899cb4 100644
--- a/src/ai/api/ai_subsidylist.cpp
+++ b/src/ai/api/ai_subsidylist.cpp
@@ -4,12 +4,12 @@
#include "ai_subsidylist.hpp"
#include "ai_subsidy.hpp"
-#include "../../subsidy_type.h"
+#include "../../subsidy_base.h"
AISubsidyList::AISubsidyList()
{
const Subsidy *s;
FOR_ALL_SUBSIDIES(s) {
- this->AddItem(s - _subsidies);
+ this->AddItem(s->Index());
}
}