1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2025-07-03 07:27:11 +02:00

Don't destroy entity instances from the server at server shutdown.

This commit is contained in:
Sandu Liviu Catalin
2016-07-16 17:52:55 +03:00
parent 0599b57087
commit 3fab6d931f
3 changed files with 41 additions and 41 deletions

View File

@ -132,7 +132,7 @@ static void OnServerShutdown(void)
// Tell the script that the server is shutting down
Core::Get().EmitServerShutdown();
// Deallocate and release everything obtained at startup
Core::Get().Terminate();
Core::Get().Terminate(true);
}
SQMOD_CATCH_EVENT_EXCEPTION(OnServerShutdown)
// See if a reload was requested (quite useless here but why not)
@ -936,7 +936,7 @@ SQMOD_API_EXPORT unsigned int VcmpPluginInit(PluginFuncs * funcs, PluginCallback
{
LogFtl("Unable to initialize the plug-in central core");
// Attempt to terminate
Core::Get().Terminate();
Core::Get().Terminate(false);
// Stop here!
return SQMOD_FAILURE;
}