mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-21 21:49:10 +00:00
(svn r16332) -Codechange: replace some -1 + 1 with 'nothing' or <= .. - 1 with < .. - 1 (both caused due to wrapper functions)
This commit is contained in:
@@ -318,7 +318,7 @@ struct NetworkChatWindow : public QueryStringBaseWindow {
|
||||
/* Then, try townnames
|
||||
* Not that the following assumes all town indices are adjacent, ie no
|
||||
* towns have been deleted. */
|
||||
if (*item <= (uint)MAX_CLIENT_SLOTS + GetMaxTownIndex()) {
|
||||
if (*item < (uint)MAX_CLIENT_SLOTS + Town::GetPoolSize()) {
|
||||
const Town *t;
|
||||
|
||||
FOR_ALL_TOWNS_FROM(t, *item - MAX_CLIENT_SLOTS) {
|
||||
|
Reference in New Issue
Block a user