diff --git a/src/Components/Modules/Dvar.cpp b/src/Components/Modules/Dvar.cpp index 182afc13..b15e1721 100644 --- a/src/Components/Modules/Dvar.cpp +++ b/src/Components/Modules/Dvar.cpp @@ -321,7 +321,7 @@ namespace Components { if (AreArchiveDvarsProtected()) { - Logger::Print(Game::CON_CHANNEL_CONSOLEONLY, "Not allowing server to override saved dvar '{}'\n", dvarName); + Logger::Print(Game::CON_CHANNEL_CONSOLEONLY, "Not allowing server to override saved dvar '{}'\n", dvar->name); return; } @@ -331,6 +331,12 @@ namespace Components SaveArchiveDvar(dvar); } + if (dvar != nullptr && std::strcmp(dvar->name, "com_errorResolveCommand") == 0) + { + Logger::Print(Game::CON_CHANNEL_CONSOLEONLY, "Not allowing server to set '{}'\n", dvar->name); + return; + } + Utils::Hook::Call(0x4F52E0)(dvarName, value); }