From e4149482ec1c1d5424327983df2ebf2419ffe273 Mon Sep 17 00:00:00 2001 From: rubidium Date: Thu, 2 Aug 2007 23:21:52 +0000 Subject: (svn r10759) -Codechange: make the industry struct use the pool item class as super class. --- src/ai/default/default.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ai/default/default.cpp') 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; } -- cgit v1.2.3-70-g09d2