(svn r25965) -Fix [FS#5800]: the wrong vehicle would be taken in a shared order vehicle list window when the ID >= 65536, causing assertions triggering later on

replace/41b28d7194a279bdc17475d4fbe2ea6ec885a466
rubidium 11 years ago
parent f7276876de
commit be4355edd3

@ -1708,7 +1708,7 @@ static WindowDesc _vehicle_list_train_desc(
_nested_vehicle_list, lengthof(_nested_vehicle_list) _nested_vehicle_list, lengthof(_nested_vehicle_list)
); );
static void ShowVehicleListWindowLocal(CompanyID company, VehicleListType vlt, VehicleType vehicle_type, uint16 unique_number) static void ShowVehicleListWindowLocal(CompanyID company, VehicleListType vlt, VehicleType vehicle_type, uint32 unique_number)
{ {
if (!Company::IsValidID(company) && company != OWNER_NONE) return; if (!Company::IsValidID(company) && company != OWNER_NONE) return;

Loading…
Cancel
Save