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))