From d917156820e074a5359fe80a3619f8abd2974abd Mon Sep 17 00:00:00 2001 From: truelight Date: Tue, 22 Aug 2006 12:15:51 +0000 Subject: (svn r6043) -Codechange: use wrapper if they are available --- ai/default/default.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ai/default') 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; -- cgit v1.2.3-70-g09d2