Fix script compile errors not being flushed to log file (#342)
Otherwise application will crash before finishing to write to log file.
This commit is contained in:
parent
9ed73b5b98
commit
4a00450e59
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue