mirror of
https://github.com/UberGames/ioef.git
synced 2024-11-30 16:01:46 +00:00
Merge pull request #152 from dionrhys/cvar-unset-notify
Fix Cvar_Unset not notifying cvar_modifiedFlags
This commit is contained in:
commit
9767a0e790
1 changed files with 3 additions and 0 deletions
|
@ -1117,6 +1117,9 @@ cvar_t *Cvar_Unset(cvar_t *cv)
|
||||||
{
|
{
|
||||||
cvar_t *next = cv->next;
|
cvar_t *next = cv->next;
|
||||||
|
|
||||||
|
// note what types of cvars have been modified (userinfo, archive, serverinfo, systeminfo)
|
||||||
|
cvar_modifiedFlags |= cv->flags;
|
||||||
|
|
||||||
if(cv->name)
|
if(cv->name)
|
||||||
Z_Free(cv->name);
|
Z_Free(cv->name);
|
||||||
if(cv->string)
|
if(cv->string)
|
||||||
|
|
Loading…
Reference in a new issue