Fix Station/Waypoint mismatch in GetChangeOrderStringID

pull/121/head
Jonathan G Rennison 5 years ago
parent 3c23c558ac
commit d0564d9298

@ -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 {

Loading…
Cancel
Save