Fix Station/Waypoint mismatch in GetChangeOrderStringID
This commit is contained in:
@@ -1831,7 +1831,7 @@ private:
|
|||||||
StringID GetChangeOrderStringID() const
|
StringID GetChangeOrderStringID() const
|
||||||
{
|
{
|
||||||
if (VehicleListIdentifier::UnPack(this->window_number).type == VL_STATION_LIST) {
|
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) {
|
} else if (VehicleListIdentifier::UnPack(this->window_number).type == VL_DEPOT_LIST) {
|
||||||
return STR_VEHICLE_LIST_CHANGE_ORDER_TRAIN_DEPOT + this->vli.vtype;
|
return STR_VEHICLE_LIST_CHANGE_ORDER_TRAIN_DEPOT + this->vli.vtype;
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user