diff options
author | belugas <belugas@openttd.org> | 2008-06-27 02:26:51 +0000 |
---|---|---|
committer | belugas <belugas@openttd.org> | 2008-06-27 02:26:51 +0000 |
commit | fef077823da90d45849307013d148acd49dbb41a (patch) | |
tree | 8e57568de08a715a0c2f551eef6496ea9eac92f9 /src | |
parent | 16e2717c0e51ac2929ee9ad2f60dd8eefd002a92 (diff) | |
download | openttd-fef077823da90d45849307013d148acd49dbb41a.tar.xz |
(svn r13644) -Fix(r13643): compare an apple with an apple. MSVC seems to not care, but some other compilers do.
Thanks to glx :)
Diffstat (limited to 'src')
-rw-r--r-- | src/toolbar_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/toolbar_gui.cpp b/src/toolbar_gui.cpp index c379f96f5..375e518bc 100644 --- a/src/toolbar_gui.cpp +++ b/src/toolbar_gui.cpp @@ -843,7 +843,7 @@ static void SplitToolbar(Window *w) static const byte *arrangements[] = { arrange14, arrange15, arrange16, arrange17, arrange18, arrange19 }; - uint max_icons = max(TBP_TOOLBAR_MINBUTTON, (w->width + TBP_BUTTONWIDTH / 2) / TBP_BUTTONWIDTH); + uint max_icons = max(TBP_TOOLBAR_MINBUTTON, (ToolBarProperties)((w->width + TBP_BUTTONWIDTH / 2) / TBP_BUTTONWIDTH)); assert(max_icons >= TBP_TOOLBAR_MINBUTTON && max_icons <= TBP_NORMAL_MAXBUTTON); |