summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDion Williams <dionrhys1@gmail.com>2015-09-07 11:29:15 +0100
committerTim Angus <tim@ngus.net>2016-04-07 11:05:37 +0100
commitae6435c1b3064f44702535c0df99e42e9752a1df (patch)
tree54a66fb6301249feaad41cc84f7952cae4d49017
parent6ca1cc925f816892b08925c90373a7b7e4ba8dbd (diff)
Fix Cvar_Unset not notifying cvar_modifiedFlags
Upstream: JACoders/OpenJK@9a5e9e87ff2d1302261978fa3f1adafb851bd6d6
-rw-r--r--src/qcommon/cvar.c3
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)