call CSQC_Shutdown between levels too!
[xonotic/darkplaces.git] / cl_main.c
index 81d3b9c..37bb7c2 100644 (file)
--- a/cl_main.c
+++ b/cl_main.c
@@ -100,6 +100,8 @@ void CL_ClearState(void)
        int i;
        entity_t *ent;
 
+       CL_VM_ShutDown();
+
 // wipe the entire cl structure
        Mem_EmptyPool(cls.levelmempool);
        memset (&cl, 0, sizeof(cl));