diff options
author | yexo <yexo@openttd.org> | 2010-08-19 15:44:17 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2010-08-19 15:44:17 +0000 |
commit | b42513a287232105cfac7323ca8cc75c30180e10 (patch) | |
tree | ada4d707b8d2bc03910a9b18903124fc58d397bb /bin/ai | |
parent | dc303e550bec650220038b727e4915f2e502a5a4 (diff) | |
download | openttd-b42513a287232105cfac7323ca8cc75c30180e10.tar.xz |
(svn r20564) -Fix (r20562): provide compatibility for AIs using the 0.7/1.0 API and using AIList::ChangeItem
Diffstat (limited to 'bin/ai')
-rw-r--r-- | bin/ai/compat_0.7.nut | 2 | ||||
-rw-r--r-- | bin/ai/compat_1.0.nut | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/bin/ai/compat_0.7.nut b/bin/ai/compat_0.7.nut index 1c73183c5..06aea3f4d 100644 --- a/bin/ai/compat_0.7.nut +++ b/bin/ai/compat_0.7.nut @@ -317,3 +317,5 @@ AIIndustry.IsCargoAccepted <- function(industry_id, cargo_id) } AIAbstractList <- AIList; + +AIList.ChangeItem <- AIList.SetValue; diff --git a/bin/ai/compat_1.0.nut b/bin/ai/compat_1.0.nut index 5cda3ad74..38f67e1b9 100644 --- a/bin/ai/compat_1.0.nut +++ b/bin/ai/compat_1.0.nut @@ -68,3 +68,5 @@ AIIndustry.IsCargoAccepted <- function(industry_id, cargo_id) } AIAbstractList <- AIList; + +AIList.ChangeItem <- AIList.SetValue; |