From 1fb7598e03159c39b5d843e759283990abd3fce0 Mon Sep 17 00:00:00 2001 From: Drahsid Date: Tue, 5 May 2020 09:39:43 -0400 Subject: [PATCH] Fixed incorrect display of vector values in symbols window --- Source/Project64/UserInterface/Debugger/Symbols.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Source/Project64/UserInterface/Debugger/Symbols.cpp b/Source/Project64/UserInterface/Debugger/Symbols.cpp index 3bbaaebd1..d3715375c 100644 --- a/Source/Project64/UserInterface/Debugger/Symbols.cpp +++ b/Source/Project64/UserInterface/Debugger/Symbols.cpp @@ -362,24 +362,24 @@ void CSymbolTable::GetValueString(char* dst, CSymbol* symbol) break; case SYM_VECTOR2: for (int i = 0; i < 2; i++) { - m_Debugger->DebugLoad_VAddr(address, value.f32); + m_Debugger->DebugLoad_VAddr(address + (i * sizeof(float)), value.f32); xyzw[i] = value.f32; } - sprintf(dst, "%f, %f", xyzw[0], xyzw[2]); + sprintf(dst, "%f, %f", xyzw[0], xyzw[1]); break; case SYM_VECTOR3: for (int i = 0; i < 3; i++) { - m_Debugger->DebugLoad_VAddr(address, value.f32); + m_Debugger->DebugLoad_VAddr(address + (i * sizeof(float)), value.f32); xyzw[i] = value.f32; } - sprintf(dst, "%f, %f, %f", xyzw[0], xyzw[2], xyzw[3]); + sprintf(dst, "%f, %f, %f", xyzw[0], xyzw[1], xyzw[2]); break; case SYM_VECTOR4: for (int i = 0; i < 4; i++) { - m_Debugger->DebugLoad_VAddr(address, value.f32); + m_Debugger->DebugLoad_VAddr(address + (i * sizeof(float)), value.f32); xyzw[i] = value.f32; } - sprintf(dst, "%f, %f, %f, %f", xyzw[0], xyzw[2], xyzw[3], xyzw[4]); + sprintf(dst, "%f, %f, %f, %f", xyzw[0], xyzw[1], xyzw[2], xyzw[3]); break; default: g_Notify->BreakPoint(__FILE__, __LINE__);