Changeset - r15783:50b1a6a736a0
[Not reviewed]
master
0 1 0
frosch - 14 years ago 2010-08-12 13:26:44
frosch@openttd.org
(svn r20468) -Fix: Vehicledetails of non-trains accessed a non existing scrollbar, though values were unused.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/vehicle_gui.cpp
Show inline comments
 
@@ -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;
 
			}
 

	
0 comments (0 inline, 0 general)