aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--code/qcommon/common.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/code/qcommon/common.c b/code/qcommon/common.c
index d7b6cb2..7e695db 100644
--- a/code/qcommon/common.c
+++ b/code/qcommon/common.c
@@ -289,7 +289,9 @@ void QDECL Com_Error( int code, const char *fmt, ... ) {
Com_Printf ("********************\nERROR: %s\n********************\n", com_errorMessage);
SV_Shutdown (va("Server crashed: %s", com_errorMessage));
CL_Disconnect( qtrue );
+ VM_Forced_Unload_Start();
CL_FlushMemory( );
+ VM_Forced_Unload_Done();
FS_PureServerSetLoadedPaks("", "");
com_errorEntered = qfalse;
longjmp (abortframe, -1);
@@ -297,7 +299,9 @@ void QDECL Com_Error( int code, const char *fmt, ... ) {
SV_Shutdown( "Server didn't have CD" );
if ( com_cl_running && com_cl_running->integer ) {
CL_Disconnect( qtrue );
+ VM_Forced_Unload_Start();
CL_FlushMemory( );
+ VM_Forced_Unload_Done();
com_errorEntered = qfalse;
CL_CDDialog();
} else {