diff options
author | frosch <frosch@openttd.org> | 2010-08-12 13:26:44 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2010-08-12 13:26:44 +0000 |
commit | b9efd3c04e3e2b5cc0b678682f3eaa164fd9ae07 (patch) | |
tree | afb01fc0569339718c4e32de946474ed58c40400 /src | |
parent | c808e5c30fbce84816bbdd0285a644c7cd8225e9 (diff) | |
download | openttd-b9efd3c04e3e2b5cc0b678682f3eaa164fd9ae07.tar.xz |
(svn r20468) -Fix: Vehicledetails of non-trains accessed a non existing scrollbar, though values were unused.
Diffstat (limited to 'src')
-rw-r--r-- | src/vehicle_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicle_gui.cpp b/src/vehicle_gui.cpp index 55357e255..b8e15730b 100644 --- a/src/vehicle_gui.cpp +++ b/src/vehicle_gui.cpp @@ -1696,7 +1696,7 @@ struct VehicleDetailsWindow : Window { 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; } |