// don't save cvars that match their default value
for (var = cvar_vars ; var ; var = var->next)
- if (var->flags & CVAR_SAVE && strcmp(var->string, var->defstring))
+ if ((var->flags & CVAR_SAVE) && (strcmp(var->string, var->defstring) || (var->flags & CVAR_ALLOCATED)))
FS_Printf(f, "%s%s \"%s\"\n", var->flags & CVAR_ALLOCATED ? "seta " : "", var->name, var->string);
}