From: divverent Date: Tue, 19 Apr 2011 16:32:54 +0000 (+0000) Subject: fix a segfault in menu routing when switching gamedirs X-Git-Tag: xonotic-v0.5.0~262 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=4749bc7b9fd42bf6522ddfddce16101a9d50fa40;p=xonotic%2Fdarkplaces.git 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 --- 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); }