summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/util/options.cpp
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2015-12-10 19:29:22 +0100
committer Miodrag Milanovic <mmicko@gmail.com>2015-12-10 19:29:22 +0100
commit14419ed38c818801d70d2ac05dcdea5e6a6a1c11 (patch)
treef6aae2a7e06e2e3cfba47f696d66968eabfa4c15 /src/lib/util/options.cpp
parent1499f84d83152ea8e60f2efeedb310e9a966f8df (diff)
Fix after tagmap conversion (nw)
Diffstat (limited to 'src/lib/util/options.cpp')
-rw-r--r--src/lib/util/options.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/util/options.cpp b/src/lib/util/options.cpp
index f1229359d16..0e02b7dc735 100644
--- a/src/lib/util/options.cpp
+++ b/src/lib/util/options.cpp
@@ -702,7 +702,10 @@ void core_options::remove_entry(core_options::entry &delentry)
// remove all names from the map
for (int name = 0; name < ARRAY_LENGTH(delentry.m_name); name++)
if (!delentry.m_name[name].empty())
- m_entrymap.erase(m_entrymap.find(delentry.m_name[name]));
+ {
+ auto entry = m_entrymap.find(delentry.m_name[name]);
+ if (entry!= m_entrymap.end()) m_entrymap.erase(entry);
+ }
// remove the entry from the list
m_entrylist.remove(delentry);