forked from mia/Aegisub
Make MRUManager::Remove work
Originally committed to SVN as r4347.
This commit is contained in:
parent
d5df0fd545
commit
9fc28fc1d4
1 changed files with 1 additions and 1 deletions
|
@ -96,7 +96,7 @@ void MRUManager::Remove(const std::string &key, const std::string &entry) {
|
|||
MRUMap::iterator index;
|
||||
|
||||
if ((index = mru.find(key)) != mru.end()) {
|
||||
MRUListMap map = *index->second;
|
||||
MRUListMap &map = *index->second;
|
||||
for (MRUListMap::iterator map_idx = map.begin(); map_idx != map.end();) {
|
||||
if (map_idx->second == entry)
|
||||
map.erase(map_idx++);
|
||||
|
|
Loading…
Reference in a new issue