fix a segfault in menu routing when switching gamedirs
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 19 Apr 2011 16:32:54 +0000 (16:32 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 19 Apr 2011 16:32:54 +0000 (16:32 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11070 d7cf8633-e32d-0410-b094-e92efae38249

menu.c

diff --git a/menu.c b/menu.c
index 9644edb..bb82b8d 100644 (file)
--- a/menu.c
+++ b/menu.c
@@ -5207,7 +5207,8 @@ void MR_SetRouting(qboolean forceold)
 
 void MR_Restart(void)
 {
-       MR_Shutdown ();
+       if(MR_Shutdown)
+               MR_Shutdown ();
        MR_SetRouting (FALSE);
 }