mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r13644) -Fix(r13643): compare an apple with an apple. MSVC seems to not care, but some other compilers do.
Thanks to glx :)
This commit is contained in:
parent
e8cddf8baa
commit
dde4de5e20
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue