From 2f89fef3536803c999e8068f1433155c7e3a4486 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') 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