]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cvar.c
fix errors and warnings in MSVC when compiling as C++
[xonotic/darkplaces.git] / cvar.c
diff --git a/cvar.c b/cvar.c
index 4dba58a98bbf3bf8e8e32f1fc16c9715e2d3b567..3db048c037013260683675652329875e0d924758 100644 (file)
--- a/cvar.c
+++ b/cvar.c
@@ -234,7 +234,7 @@ void Cvar_SetQuick_Internal (cvar_t *var, const char *value)
        qboolean changed;
        size_t valuelen;
 
-       changed = strcmp(var->string, value);
+       changed = strcmp(var->string, value) != 0;
        // LordHavoc: don't reallocate when there is no change
        if (!changed)
                return;