(svn r6043) -Codechange: use wrapper if they are available
authortruelight
Tue, 22 Aug 2006 12:15:51 +0000
changeset 4342 fbbc2390c895
parent 4341 a93dbd5a83d4
child 4343 ca99d5b3f42d
(svn r6043) -Codechange: use wrapper if they are available
ai/default/default.c
--- a/ai/default/default.c	Mon Aug 21 21:49:44 2006 +0000
+++ b/ai/default/default.c	Tue Aug 22 12:15:51 2006 +0000
@@ -1408,7 +1408,7 @@
 		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;