Fix typo testing VIF_CHANGED

This error seemed to be benign, because I don't think there was a way to get here with
int_flags non-zero without VIF_CHANGED already set.

Remove unnecessary tests for 'value' and '!value', because value is always non-NULL in that
code path.
This commit is contained in:
Kevin Easton
2017-10-27 20:35:33 +11:00
parent a220b8aa7f
commit 1cb3775ced

View File

@@ -935,11 +935,9 @@ void set_var_value(int var_index, char *value, IrcVariableDll *dll)
else
say("SET: no such user");
}
if ((!var->int_flags & VIF_CHANGED))
if (!(var->int_flags & VIF_CHANGED))
{
if ((var->string && ! value) ||
(! var->string && value) ||
my_stricmp(var->string, value))
if (!var->string || my_stricmp(var->string, value))
var->int_flags |= VIF_CHANGED;
}
if (loading_global)