mirror of
https://github.com/holub/mame
synced 2025-06-30 16:00:01 +03:00
Fix after tagmap conversion (nw)
This commit is contained in:
parent
1499f84d83
commit
14419ed38c
@ -702,7 +702,10 @@ void core_options::remove_entry(core_options::entry &delentry)
|
|||||||
// remove all names from the map
|
// remove all names from the map
|
||||||
for (int name = 0; name < ARRAY_LENGTH(delentry.m_name); name++)
|
for (int name = 0; name < ARRAY_LENGTH(delentry.m_name); name++)
|
||||||
if (!delentry.m_name[name].empty())
|
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
|
// remove the entry from the list
|
||||||
m_entrylist.remove(delentry);
|
m_entrylist.remove(delentry);
|
||||||
|
Loading…
Reference in New Issue
Block a user