summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinWX/Debugger/CodeView.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/DolphinWX/Debugger/CodeView.cpp')
-rw-r--r--Source/Core/DolphinWX/Debugger/CodeView.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/Core/DolphinWX/Debugger/CodeView.cpp b/Source/Core/DolphinWX/Debugger/CodeView.cpp
index 7b18a5e9d8..80b5598dfc 100644
--- a/Source/Core/DolphinWX/Debugger/CodeView.cpp
+++ b/Source/Core/DolphinWX/Debugger/CodeView.cpp
@@ -478,9 +478,10 @@ void CCodeView::OnPaint(wxPaintEvent& event)
{
std::vector<std::string> dis;
SplitString(m_debugger->Disassemble(address), '\t', dis);
+ dis.resize(2);
static const size_t VALID_BRANCH_LENGTH = 10;
- const std::string& opcode = dis[0];
+ const std::string& opcode = dis[0];
const std::string& operands = dis[1];
std::string desc;