From 4749bc7b9fd42bf6522ddfddce16101a9d50fa40 Mon Sep 17 00:00:00 2001 From: divverent Date: Tue, 19 Apr 2011 16:32:54 +0000 Subject: [PATCH] fix a segfault in menu routing when switching gamedirs git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11070 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=5a028cf391c9e69c5015809ca1b6132af2189198 --- menu.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/menu.c b/menu.c index 9644edba..bb82b8d4 100644 --- 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); } -- 2.39.2