From b42513a287232105cfac7323ca8cc75c30180e10 Mon Sep 17 00:00:00 2001 From: yexo Date: Thu, 19 Aug 2010 15:44:17 +0000 Subject: [PATCH] (svn r20564) -Fix (r20562): provide compatibility for AIs using the 0.7/1.0 API and using AIList::ChangeItem --- bin/ai/compat_0.7.nut | 2 ++ bin/ai/compat_1.0.nut | 2 ++ 2 files changed, 4 insertions(+) diff --git a/bin/ai/compat_0.7.nut b/bin/ai/compat_0.7.nut index 1c73183c53..06aea3f4d8 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 5cda3ad744..38f67e1b9f 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;