mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 22:40:05 +00:00
enable having markers without names
This commit is contained in:
parent
5d8f3786de
commit
d8233a2c41
1 changed files with 7 additions and 10 deletions
|
|
@ -190,8 +190,6 @@ void MarkerManager::Impl::ReadMarkerSettings()
|
||||||
{
|
{
|
||||||
auto record = boost::json::value_to<MarkerRecord>(markerEntry);
|
auto record = boost::json::value_to<MarkerRecord>(markerEntry);
|
||||||
|
|
||||||
if (!record.markerInfo_.name.empty())
|
|
||||||
{
|
|
||||||
types::MarkerId id = NewId();
|
types::MarkerId id = NewId();
|
||||||
size_t index = markerRecords_.size();
|
size_t index = markerRecords_.size();
|
||||||
record.markerInfo_.id = id;
|
record.markerInfo_.id = id;
|
||||||
|
|
@ -201,7 +199,6 @@ void MarkerManager::Impl::ReadMarkerSettings()
|
||||||
|
|
||||||
self_->add_icon(record.markerInfo_.iconName, true);
|
self_->add_icon(record.markerInfo_.iconName, true);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
catch (const std::exception& ex)
|
catch (const std::exception& ex)
|
||||||
{
|
{
|
||||||
logger_->warn("Invalid location marker entry: {}", ex.what());
|
logger_->warn("Invalid location marker entry: {}", ex.what());
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue