Fix 19835b51
: Linker issues with static empty structs
This commit is contained in:
@@ -54,6 +54,9 @@ extern uint8 _extra_station_names_probability;
|
|||||||
|
|
||||||
class FlowStatMap;
|
class FlowStatMap;
|
||||||
|
|
||||||
|
extern const StationCargoList _empty_cargo_list;
|
||||||
|
extern const FlowStatMap _empty_flows;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Flow statistics telling how much flow should be sent along a link. This is
|
* Flow statistics telling how much flow should be sent along a link. This is
|
||||||
* done by creating "flow shares" and using std::map's upper_bound() method to
|
* done by creating "flow shares" and using std::map's upper_bound() method to
|
||||||
@@ -699,13 +702,11 @@ struct GoodsEntry {
|
|||||||
|
|
||||||
const StationCargoList &ConstCargoList() const
|
const StationCargoList &ConstCargoList() const
|
||||||
{
|
{
|
||||||
extern const StationCargoList _empty_cargo_list;
|
|
||||||
return this->data != nullptr ? this->data->cargo : _empty_cargo_list;
|
return this->data != nullptr ? this->data->cargo : _empty_cargo_list;
|
||||||
}
|
}
|
||||||
|
|
||||||
const FlowStatMap &ConstFlows() const
|
const FlowStatMap &ConstFlows() const
|
||||||
{
|
{
|
||||||
extern const FlowStatMap _empty_flows;
|
|
||||||
return this->data != nullptr ? this->data->flows : _empty_flows;
|
return this->data != nullptr ? this->data->flows : _empty_flows;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user