summaryrefslogtreecommitdiff
path: root/src/newgrf_debug_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-04-29 18:28:24 +0000
committerrubidium <rubidium@openttd.org>2010-04-29 18:28:24 +0000
commitac9af8e1e174075266eba3c59d863804a5a5b3c2 (patch)
treeaf4f89c9b8d6d6f8d1cc2d9d5b0f893b050f1346 /src/newgrf_debug_gui.cpp
parent247d1aa3959548c020027fc66eab9a7e1dc0cc99 (diff)
downloadopenttd-ac9af8e1e174075266eba3c59d863804a5a5b3c2.tar.xz
(svn r19738) -Fix: MSVC 64 bits compile warnings
Diffstat (limited to 'src/newgrf_debug_gui.cpp')
-rw-r--r--src/newgrf_debug_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf_debug_gui.cpp b/src/newgrf_debug_gui.cpp
index b53c2ae5b..703edf905 100644
--- a/src/newgrf_debug_gui.cpp
+++ b/src/newgrf_debug_gui.cpp
@@ -624,7 +624,7 @@ struct SpriteAlignerWindow : Window {
int step_size = nwid->resize_y;
SmallVector<SpriteID, 256> &list = _newgrf_debug_sprite_picker.sprites;
- int max = min(this->vscroll.GetPosition() + this->vscroll.GetCapacity(), list.Length());
+ int max = min<int>(this->vscroll.GetPosition() + this->vscroll.GetCapacity(), list.Length());
int y = r.top + WD_FRAMERECT_TOP;
for (int i = this->vscroll.GetPosition(); i < max; i++) {