summaryrefslogtreecommitdiff
path: root/src/JSystem/JUtility/JUTException.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/JSystem/JUtility/JUTException.cpp')
-rw-r--r--src/JSystem/JUtility/JUTException.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/JSystem/JUtility/JUTException.cpp b/src/JSystem/JUtility/JUTException.cpp
index 855e46cf70..876804d584 100644
--- a/src/JSystem/JUtility/JUTException.cpp
+++ b/src/JSystem/JUtility/JUTException.cpp
@@ -154,8 +154,6 @@ void JUTException::errorHandler(OSError error, OSContext* context, u32 param_3,
JSUList<JUTException::JUTExMapFile> JUTException::sMapFileList(false);
-static OSContext context;
-
void JUTException::panic_f_va(char const* file, int line, char const* format, va_list args) {
char buffer[256];
vsnprintf(buffer, sizeof(buffer) - 1, format, args);
@@ -164,6 +162,7 @@ void JUTException::panic_f_va(char const* file, int line, char const* format, va
}
OSContext* current_context = OSGetCurrentContext();
+ static OSContext context;
memcpy(&context, current_context, sizeof(OSContext));
sErrorManager->mStackPointer = (uintptr_t)OSGetStackPointer();