diff options
Diffstat (limited to 'src/ai')
-rw-r--r-- | src/ai/default/default.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |