diff options
author | glx <glx@openttd.org> | 2009-01-03 19:39:22 +0000 |
---|---|---|
committer | glx <glx@openttd.org> | 2009-01-03 19:39:22 +0000 |
commit | 06519a56f27c2c5861520e3e0878df7dda68937c (patch) | |
tree | 88f63fccf47f8c158a642ed1f4bece3706e6f86e /src/network/network_gui.cpp | |
parent | 7869c4ba66657308fec5d9e15ed376fda5054a22 (diff) | |
download | openttd-06519a56f27c2c5861520e3e0878df7dda68937c.tar.xz |
(svn r14816) -Fix: signed/unsigned warnings (MSVC)
Diffstat (limited to 'src/network/network_gui.cpp')
-rw-r--r-- | src/network/network_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/network_gui.cpp b/src/network/network_gui.cpp index 007901341..380bf9060 100644 --- a/src/network/network_gui.cpp +++ b/src/network/network_gui.cpp @@ -629,7 +629,7 @@ public: case WKC_PAGEDOWN: /* scroll down a page */ if (this->server == NULL) return ES_HANDLED; - this->list_pos = (this->list_pos + this->vscroll.cap > this->servers.Length() - 1) ? this->servers.Length() - 1 : this->list_pos + this->vscroll.cap; + this->list_pos = min(this->list_pos + this->vscroll.cap, (int)this->servers.Length() - 1); break; case WKC_HOME: /* jump to beginning */ |