diff options
author | rubidium <rubidium@openttd.org> | 2009-10-31 10:07:40 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-10-31 10:07:40 +0000 |
commit | 1be5d92a9c00a5e0a6f365fc05da280cf1adfca0 (patch) | |
tree | eb562bdc0c807096c5e61f897320c1d78ada9fe1 | |
parent | bcb33b50ac40f01d9fcc142c46cc333963f2d946 (diff) | |
download | openttd-1be5d92a9c00a5e0a6f365fc05da280cf1adfca0.tar.xz |
(svn r17912) -Fix [FS#3289] (r17868): crash when opening the vehicle list (not group list) of a specific company
-rw-r--r-- | src/vehicle_gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vehicle_gui.cpp b/src/vehicle_gui.cpp index 94f4773dc..e4587895f 100644 --- a/src/vehicle_gui.cpp +++ b/src/vehicle_gui.cpp @@ -941,7 +941,7 @@ public: case VLW_STANDARD: // Company Name SetDParam(0, STR_COMPANY_NAME); - SetDParam(1, owner); + SetDParam(1, index); SetDParam(2, this->vscroll.GetCount()); break; @@ -1166,7 +1166,7 @@ void ShowVehicleListWindow(CompanyID company, VehicleType vehicle_type) if ((_settings_client.gui.advanced_vehicle_list > (uint)(company != _local_company)) != _ctrl_pressed) { ShowCompanyGroup(company, vehicle_type); } else { - ShowVehicleListWindowLocal(company, VLW_STANDARD, vehicle_type, 0); + ShowVehicleListWindowLocal(company, VLW_STANDARD, vehicle_type, company); } } |