summaryrefslogtreecommitdiff
path: root/src/settings_gui.cpp
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2009-01-03 19:39:22 +0000
committerglx <glx@openttd.org>2009-01-03 19:39:22 +0000
commit06519a56f27c2c5861520e3e0878df7dda68937c (patch)
tree88f63fccf47f8c158a642ed1f4bece3706e6f86e /src/settings_gui.cpp
parent7869c4ba66657308fec5d9e15ed376fda5054a22 (diff)
downloadopenttd-06519a56f27c2c5861520e3e0878df7dda68937c.tar.xz
(svn r14816) -Fix: signed/unsigned warnings (MSVC)
Diffstat (limited to 'src/settings_gui.cpp')
-rw-r--r--src/settings_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/settings_gui.cpp b/src/settings_gui.cpp
index a04f12ee8..bef0d446d 100644
--- a/src/settings_gui.cpp
+++ b/src/settings_gui.cpp
@@ -818,7 +818,7 @@ struct PatchesSelectionWindow : Window {
int x = SETTINGTREE_LEFT_OFFSET;
int y = SETTINGTREE_TOP_OFFSET;
- for (uint i = vscroll.pos; i != page->num && i < vscroll.pos + vscroll.cap; i++) {
+ for (uint i = vscroll.pos; i != page->num && vscroll.pos + vscroll.cap - i > 0; i++) {
const SettingDesc *sd = page->entries[i].setting;
DrawPatch(patches_ptr, sd, x, y, this->click - (i * 2));
y += SETTING_HEIGHT;