Fix Station/Waypoint mismatch in GetChangeOrderStringID

This commit is contained in:
Jonathan G Rennison
2019-12-09 00:41:10 +00:00
parent 3c23c558ac
commit d0564d9298

View File

@@ -1831,7 +1831,7 @@ private:
StringID GetChangeOrderStringID() const
{
if (VehicleListIdentifier::UnPack(this->window_number).type == VL_STATION_LIST) {
return (Station::Get(this->vli.index)->facilities & FACIL_WAYPOINT) ? STR_VEHICLE_LIST_CHANGE_ORDER_WAYPOINT : STR_VEHICLE_LIST_CHANGE_ORDER_STATION;
return (BaseStation::Get(this->vli.index)->facilities & FACIL_WAYPOINT) ? STR_VEHICLE_LIST_CHANGE_ORDER_WAYPOINT : STR_VEHICLE_LIST_CHANGE_ORDER_STATION;
} else if (VehicleListIdentifier::UnPack(this->window_number).type == VL_DEPOT_LIST) {
return STR_VEHICLE_LIST_CHANGE_ORDER_TRAIN_DEPOT + this->vli.vtype;
} else {