]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
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 9644edba44cd6bfb56fc3c9373f10965c679dfdb..bb82b8d487529ebe96f703f4e929c7aa821ed1c7 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);
 }