From ce2b8db294875ed27a0ca3a4bffa4611c89f109f Mon Sep 17 00:00:00 2001 From: Dion Williams Date: Mon, 7 Sep 2015 11:29:15 +0100 Subject: [PATCH] Fix Cvar_Unset not notifying cvar_modifiedFlags Upstream: JACoders/OpenJK@9a5e9e87ff2d1302261978fa3f1adafb851bd6d6 --- code/qcommon/cvar.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/qcommon/cvar.c b/code/qcommon/cvar.c index 0b21fa71..f07705db 100644 --- a/code/qcommon/cvar.c +++ b/code/qcommon/cvar.c @@ -1117,6 +1117,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)