diff options
author | Dion Williams <dionrhys1@gmail.com> | 2015-09-07 11:29:15 +0100 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2016-04-07 11:05:37 +0100 |
commit | ae6435c1b3064f44702535c0df99e42e9752a1df (patch) | |
tree | 54a66fb6301249feaad41cc84f7952cae4d49017 /src/qcommon | |
parent | 6ca1cc925f816892b08925c90373a7b7e4ba8dbd (diff) |
Fix Cvar_Unset not notifying cvar_modifiedFlags
Upstream: JACoders/OpenJK@9a5e9e87ff2d1302261978fa3f1adafb851bd6d6
Diffstat (limited to 'src/qcommon')
-rw-r--r-- | src/qcommon/cvar.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/qcommon/cvar.c b/src/qcommon/cvar.c index 336f45b0..d22679e8 100644 --- a/src/qcommon/cvar.c +++ b/src/qcommon/cvar.c @@ -1118,6 +1118,9 @@ cvar_t *Cvar_Unset(cvar_t *cv) { cvar_t *next = cv->next; + // note what types of cvars have been modified (userinfo, archive, serverinfo, systeminfo) + cvar_modifiedFlags |= cv->flags; + if(cv->name) Z_Free(cv->name); if(cv->string) |