diff options
author | truelight <truelight@openttd.org> | 2006-08-22 12:15:51 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2006-08-22 12:15:51 +0000 |
commit | d917156820e074a5359fe80a3619f8abd2974abd (patch) | |
tree | 21319a94248955116bc67dac2378f9b98eb442e8 /ai/default | |
parent | 9282b29fbc216d41d0c283ca3e6b39dbabc3bc21 (diff) | |
download | openttd-d917156820e074a5359fe80a3619f8abd2974abd.tar.xz |
(svn r6043) -Codechange: use wrapper if they are available
Diffstat (limited to 'ai/default')
-rw-r--r-- | ai/default/default.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ai/default/default.c b/ai/default/default.c index 54a550599..ebd964319 100644 --- a/ai/default/default.c +++ b/ai/default/default.c @@ -1408,7 +1408,7 @@ static void AiWantOilRigAircraftRoute(Player *p) t = AiFindRandomTown(); if (t != NULL) { // Find a random oil rig industry - in = GetIndustry(RandomRange(_total_industries)); + in = AiFindRandomIndustry(); if (in != NULL && in->type == IT_OIL_RIG) { if (DistanceManhattan(t->xy, in->xy) < 60) break; |