aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDLL/squirrel.cpp
diff options
context:
space:
mode:
authorEmma Miler <emma.pi@protonmail.com>2022-12-01 20:29:57 +0100
committerGitHub <noreply@github.com>2022-12-01 20:29:57 +0100
commita046eec2d9502640e485c2544a3acef64c68b63c (patch)
tree4fe5938d0cd16065f94f8e52afe98bb991cd453e /NorthstarDLL/squirrel.cpp
parent4a00450e591e1bb2e8a2bc913ce1e1acfaef08b6 (diff)
downloadNorthstarLauncher-a046eec2d9502640e485c2544a3acef64c68b63c.tar.gz
NorthstarLauncher-a046eec2d9502640e485c2544a3acef64c68b63c.zip
Exit instead of abort on server compile error (#353)
* Exit instead of abort on server compile error Dedicated server should almost never call abort in the event of a crash. * Update NorthstarDLL/squirrel.cpp * Update squirrel.cpp * Update squirrel.cpp
Diffstat (limited to 'NorthstarDLL/squirrel.cpp')
-rw-r--r--NorthstarDLL/squirrel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/NorthstarDLL/squirrel.cpp b/NorthstarDLL/squirrel.cpp
index 06a88ba3..02ca651e 100644
--- a/NorthstarDLL/squirrel.cpp
+++ b/NorthstarDLL/squirrel.cpp
@@ -360,9 +360,9 @@ 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
+ // flush the logger before we exit so debug things get saved to log file
logger->flush();
- abort();
+ exit(EXIT_FAILURE);
}
else
{