mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Merge pull request #5621 from chinhodado/patch-2
Avoid using an invalidated iterator
This commit is contained in:
commit
0b3f1e4a5b
1 changed files with 1 additions and 1 deletions
|
@ -740,7 +740,7 @@ void SymbolMap::AddLabel(const char* name, u32 address, int moduleIndex) {
|
|||
auto active = activeLabels.find(address);
|
||||
if (active != activeLabels.end() && active->second.module == moduleIndex) {
|
||||
activeLabels.erase(active);
|
||||
activeLabels.insert(std::make_pair(address, existing->second));
|
||||
activeLabels.insert(std::make_pair(address, label));
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Add table
Reference in a new issue