From c0eccaf901ab327e95720042679011295142ed58 Mon Sep 17 00:00:00 2001 From: Reece Date: Sat, 2 Oct 2021 14:19:25 +0100 Subject: [PATCH] [+] Mend noted build issues --- Include/AuroraTypedefs.hpp | 9 +++++++-- Source/Debug/ExceptionWatcher.Win32.cpp | 2 ++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/Include/AuroraTypedefs.hpp b/Include/AuroraTypedefs.hpp index 11cdbdc2..99beddbd 100644 --- a/Include/AuroraTypedefs.hpp +++ b/Include/AuroraTypedefs.hpp @@ -175,8 +175,13 @@ static const AuThreadId_t kThreadIdSpecialMask = AuThreadId_t(1) << AuThreadId_t struct AuFVec { float elements[N]; - - float &operator [](int idx) const + + float operator [](int idx) const + { + return elements[N]; + } + + float &operator [](int idx) { return elements[N]; } diff --git a/Source/Debug/ExceptionWatcher.Win32.cpp b/Source/Debug/ExceptionWatcher.Win32.cpp index c396b26f..f477028b 100644 --- a/Source/Debug/ExceptionWatcher.Win32.cpp +++ b/Source/Debug/ExceptionWatcher.Win32.cpp @@ -98,6 +98,8 @@ namespace Aurora::Debug #if defined(DEBUG) IMAGEHLP_LINE64 line; + DWORD disp; + line.SizeOfStruct = sizeof(IMAGEHLP_LINE64); if (SymGetLineFromAddr64(process, stack.AddrPC.Offset, &disp, &line))