summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2009-10-24 20:28:54 +0000
committeralberth <alberth@openttd.org>2009-10-24 20:28:54 +0000
commitdae5dceb851dcae68948072a4d4de37f434bb476 (patch)
treec8fd8a49dc692f34e35eb417c50f1b5ad7f86aab /src
parentda0ac0923401e3e765fca8e29b50050305664501 (diff)
downloadopenttd-dae5dceb851dcae68948072a4d4de37f434bb476.tar.xz
(svn r17861) -Fix (r17860): max(uint, int) does not exist.
Diffstat (limited to 'src')
-rw-r--r--src/vehicle_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicle_gui.cpp b/src/vehicle_gui.cpp
index 38f92b1a4..00ae8ea9b 100644
--- a/src/vehicle_gui.cpp
+++ b/src/vehicle_gui.cpp
@@ -340,7 +340,7 @@ struct RefitWindow : public Window {
size->height = resize->height * 8;
break;
case VRW_INFOPANEL:
- size->height = max(size->height, WD_FRAMERECT_TOP + 2 * FONT_HEIGHT_NORMAL + WD_FRAMERECT_BOTTOM);
+ size->height = max(size->height, (uint)(WD_FRAMERECT_TOP + 2 * FONT_HEIGHT_NORMAL + WD_FRAMERECT_BOTTOM));
break;
}
}