diff options
author | smatz <smatz@openttd.org> | 2009-07-01 18:45:05 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2009-07-01 18:45:05 +0000 |
commit | 76a50ce94dc7c78d76c309d8a639591fed2a2da8 (patch) | |
tree | 342be7030b9760781f886bca89cbe01863985008 /src/ai/api/ai_subsidylist.cpp | |
parent | aaeb53066dff98cac2d66d1f02f545d14c9f650c (diff) | |
download | openttd-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.cpp | 4 |
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()); } } |