summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/vehicle_gui.cpp4
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);
}
}