diff options
-rw-r--r-- | NorthstarDLL/squirrel.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/NorthstarDLL/squirrel.cpp b/NorthstarDLL/squirrel.cpp index cd8b437c..06a88ba3 100644 --- a/NorthstarDLL/squirrel.cpp +++ b/NorthstarDLL/squirrel.cpp @@ -359,7 +359,11 @@ void __fastcall ScriptCompileErrorHook(HSquirrelVM* sqvm, const char* error, con { // kill dedicated server if we hit this if (IsDedicatedServer()) + { + // flush the logger before we abort so debug things get saved to log file + logger->flush(); abort(); + } else { R2::Cbuf_AddText( |