(svn r16332) -Codechange: replace some -1 + 1 with 'nothing' or <= .. - 1 with < .. - 1 (both caused due to wrapper functions)
This commit is contained in:
@@ -337,7 +337,7 @@ static inline Industry *GetRandomIndustry()
|
||||
/* Make sure we have a valid industry */
|
||||
while (!Industry::IsValidID(index)) {
|
||||
index++;
|
||||
assert(index <= GetMaxIndustryIndex());
|
||||
assert(index < Industry::GetPoolSize());
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user