mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 13:30:06 +00:00
Fix default radar product in map settings
This commit is contained in:
parent
ca044850fa
commit
7b895333e2
1 changed files with 2 additions and 2 deletions
|
|
@ -59,7 +59,7 @@ public:
|
||||||
MapSettings::MapSettings() : p(std::make_unique<MapSettingsImpl>()) {}
|
MapSettings::MapSettings() : p(std::make_unique<MapSettingsImpl>()) {}
|
||||||
MapSettings::~MapSettings() = default;
|
MapSettings::~MapSettings() = default;
|
||||||
|
|
||||||
MapSettings::MapSettings(MapSettings&&) noexcept = default;
|
MapSettings::MapSettings(MapSettings&&) noexcept = default;
|
||||||
MapSettings& MapSettings::operator=(MapSettings&&) noexcept = default;
|
MapSettings& MapSettings::operator=(MapSettings&&) noexcept = default;
|
||||||
|
|
||||||
size_t MapSettings::count() const
|
size_t MapSettings::count() const
|
||||||
|
|
@ -134,7 +134,7 @@ std::shared_ptr<MapSettings> MapSettings::Load(const boost::json::value* json,
|
||||||
!util::json::FromJsonString(mapRecord,
|
!util::json::FromJsonString(mapRecord,
|
||||||
"radar_product",
|
"radar_product",
|
||||||
mapRecordSettings.radarProduct_,
|
mapRecordSettings.radarProduct_,
|
||||||
kDefaultRadarSite_);
|
kDefaultRadarProduct_[i]);
|
||||||
|
|
||||||
// Validate Radar Site
|
// Validate Radar Site
|
||||||
if (config::RadarSite::Get(mapRecordSettings.radarSite_) == nullptr)
|
if (config::RadarSite::Get(mapRecordSettings.radarSite_) == nullptr)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue