From 481250931c560cdb08609bb1a2bf31de05bc3e29 Mon Sep 17 00:00:00 2001 From: chinhodado Date: Fri, 7 Mar 2014 16:43:02 -0500 Subject: [PATCH] Avoid using an invalidated iterator --- Core/Debugger/SymbolMap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/Debugger/SymbolMap.cpp b/Core/Debugger/SymbolMap.cpp index 0765ae24d2..c1a7df2842 100644 --- a/Core/Debugger/SymbolMap.cpp +++ b/Core/Debugger/SymbolMap.cpp @@ -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 {