diff options
author | rubidium <rubidium@openttd.org> | 2009-05-17 11:17:53 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-05-17 11:17:53 +0000 |
commit | e7dedf4e1b2569a3f595f045a61d3d4bc144f3de (patch) | |
tree | 4c24aeae74983bd800c3b0b295bf854bd3f3ea89 /src/network | |
parent | 3322cc978fbee678fc9a7abf930e76c0b3ca23a8 (diff) | |
download | openttd-e7dedf4e1b2569a3f595f045a61d3d4bc144f3de.tar.xz |
(svn r16332) -Codechange: replace some -1 + 1 with 'nothing' or <= .. - 1 with < .. - 1 (both caused due to wrapper functions)
Diffstat (limited to 'src/network')
-rw-r--r-- | src/network/network_chat_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/network_chat_gui.cpp b/src/network/network_chat_gui.cpp index 17e17e32c..9f896c185 100644 --- a/src/network/network_chat_gui.cpp +++ b/src/network/network_chat_gui.cpp @@ -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) { |