From d5c00b8909784806c58abdb862922f1d8a484876 Mon Sep 17 00:00:00 2001 From: Tillmann Karras Date: Mon, 8 Jun 2020 03:33:31 +0100 Subject: [PATCH] DSPSymbols: fix off-by-one error --- Source/Core/Core/HW/DSPLLE/DSPSymbols.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Source/Core/Core/HW/DSPLLE/DSPSymbols.cpp b/Source/Core/Core/HW/DSPLLE/DSPSymbols.cpp index fe0bcf3b92..499de0a931 100644 --- a/Source/Core/Core/HW/DSPLLE/DSPSymbols.cpp +++ b/Source/Core/Core/HW/DSPLLE/DSPSymbols.cpp @@ -20,7 +20,6 @@ DSPSymbolDB g_dsp_symbol_db; static std::map addr_to_line; static std::map line_to_addr; -static std::map line_to_symbol; static std::vector lines; static int line_counter = 0; @@ -44,7 +43,7 @@ int Line2Addr(int line) // -1 for not found const char* GetLineText(int line) { - if (line > 0 && line < (int)lines.size()) + if (line >= 0 && line < (int)lines.size()) { return lines[line].c_str(); }