summaryrefslogtreecommitdiff
path: root/src/ai/default
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-08-02 23:21:52 +0000
committerrubidium <rubidium@openttd.org>2007-08-02 23:21:52 +0000
commit2f89fef3536803c999e8068f1433155c7e3a4486 (patch)
tree492ddfe6412cdabdaaaa435390d2417c774cf096 /src/ai/default
parentc60988a1d5d2a140eb5f8ff1b90119ee40ec787e (diff)
downloadopenttd-2f89fef3536803c999e8068f1433155c7e3a4486.tar.xz
(svn r10759) -Codechange: make the industry struct use the pool item class as super class.
Diffstat (limited to 'src/ai/default')
-rw-r--r--src/ai/default/default.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ai/default/default.cpp b/src/ai/default/default.cpp
index 7235ab704..35cdc29c8 100644
--- a/src/ai/default/default.cpp
+++ b/src/ai/default/default.cpp
@@ -462,7 +462,7 @@ static Town *AiFindRandomTown()
static Industry *AiFindRandomIndustry()
{
int num = RandomRange(GetMaxIndustryIndex());
- if (IsValidIndustry(GetIndustry(num))) return GetIndustry(num);
+ if (IsValidIndustryID(num)) return GetIndustry(num);
return NULL;
}