From 7fdbfc237012608efa831195f9e403dff3629b3d Mon Sep 17 00:00:00 2001 From: momo5502 Date: Tue, 28 Feb 2023 19:46:19 +0100 Subject: [PATCH] Only schedule dvar save for archive dvars --- src/client/component/dvars.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/component/dvars.cpp b/src/client/component/dvars.cpp index 37bf5ec7..45fe74e9 100644 --- a/src/client/component/dvars.cpp +++ b/src/client/component/dvars.cpp @@ -170,7 +170,7 @@ namespace dvars { dvar_set_variant_hook.invoke(dvar, value, source); - if (initial_config_read && dvar->debugName) + if (initial_config_read && is_archive_dvar(dvar)) { schedule_dvar_write(); }