Fix crash when reseting to default values

git-svn-id: https://svn.eduke32.com/eduke32@1246 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
qbix79 2009-03-15 16:02:57 +00:00
parent fb8ccf22af
commit 287f173551

View file

@ -73,7 +73,7 @@ static void Gv_Clear(void)
aGameVars[i].szLabel=NULL;
aGameVars[i].dwFlags=0;
if (aGameVars[i].val.plValues)
if (aGameVars[i].dwFlags & (GAMEVAR_USER_MASK) && aGameVars[i].val.plValues)
{
Bfree(aGameVars[i].val.plValues);
aGameVars[i].val.plValues=NULL;