mirror of
https://github.com/DrBeef/Raze.git
synced 2025-01-31 05:00:41 +00:00
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:
parent
fb8ccf22af
commit
287f173551
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue