Mercurial > hg > openttd
changeset 15793:1666a11eb6a6 draft
(svn r20468) -Fix: Vehicledetails of non-trains accessed a non existing scrollbar, though values were unused.
author | frosch <frosch@openttd.org> |
---|---|
date | Thu, 12 Aug 2010 13:26:44 +0000 |
parents | 634a16128f32 |
children | c4583e59eb02 |
files | src/vehicle_gui.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/vehicle_gui.cpp +++ b/src/vehicle_gui.cpp @@ -1696,7 +1696,7 @@ DrawVehicleImage(v, sprite_left + WD_FRAMERECT_LEFT, sprite_right - WD_FRAMERECT_RIGHT, r.top + WD_FRAMERECT_TOP, INVALID_VEHICLE, 0); } - DrawVehicleDetails(v, text_left + WD_FRAMERECT_LEFT, text_right - WD_FRAMERECT_RIGHT, r.top + WD_FRAMERECT_TOP, this->vscroll->GetPosition(), this->vscroll->GetCapacity(), this->tab); + DrawVehicleDetails(v, text_left + WD_FRAMERECT_LEFT, text_right - WD_FRAMERECT_RIGHT, r.top + WD_FRAMERECT_TOP, 0, 0, this->tab); break; }