diff --git a/GeoLib/Station.cpp b/GeoLib/Station.cpp index beffd59647cf559e1f7d08fc05588b4e4514f7e0..a7586ecdb45c73b7c5444085c39cd2a2f99c80c7 100644 --- a/GeoLib/Station.cpp +++ b/GeoLib/Station.cpp @@ -35,7 +35,10 @@ Station::Station(Point* coords, std::string name) Station::Station(Station const& src) : Point(src), _name(src._name), - _station_value(src._station_value) + _station_value(src._station_value), + _sensor_data(src._sensor_data.get() != nullptr + ? new SensorData(*(src._sensor_data.get())) + : nullptr) { }