]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - menu.c
cvar: fix many bugs in gamedir, loadconfig, unset, cvar_resettodefaults* commands
[xonotic/darkplaces.git] / menu.c
diff --git a/menu.c b/menu.c
index e26e74d71f604cbce2fdfb7499843e14d315f581..891ebe1ed6133fc95835d49db11a68b691fe83ed 100644 (file)
--- a/menu.c
+++ b/menu.c
@@ -5306,10 +5306,12 @@ static void MP_KeyEvent (int key, int ascii, qbool downevent)
 static void MP_Draw (void)
 {
        prvm_prog_t *prog = MVM_prog;
-       // declarations that are needed right now
-
        float oldquality;
 
+       // don't crash if we draw a frame between prog shutdown and restart, see Host_LoadConfig_f
+       if (!prog->loaded)
+               return;
+
        R_SelectScene( RST_MENU );
 
        // reset the temp entities each frame