Mercurial > hg > openttd
changeset 6026:fb6796cdcee4 draft
(svn r8749) -Regression r8331: fixed signed/unsigned issue that could create too many lines in build vehicle windows and crash the game
author | bjarni <bjarni@openttd.org> |
---|---|
date | Thu, 15 Feb 2007 20:58:45 +0000 |
parents | b3979c751708 |
children | 22d859b7458d |
files | src/build_vehicle_gui.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/build_vehicle_gui.cpp +++ b/src/build_vehicle_gui.cpp @@ -931,7 +931,7 @@ if (e->we.sizing.diff.x != 0) ResizeButtons(w, BUILD_VEHICLE_WIDGET_BUILD, BUILD_VEHICLE_WIDGET_RENAME); if (e->we.sizing.diff.y == 0) break; - w->vscroll.cap += e->we.sizing.diff.y / GetVehicleListHeight(bv->vehicle_type); + w->vscroll.cap += e->we.sizing.diff.y / (int)GetVehicleListHeight(bv->vehicle_type); w->widget[BUILD_VEHICLE_WIDGET_LIST].data = (w->vscroll.cap << 8) + 1; break; }