From c4e2b3e02022aff77879f2aa6a24ee22c023f6a6 Mon Sep 17 00:00:00 2001 From: momo5502 Date: Thu, 12 Jan 2017 22:15:57 +0100 Subject: [PATCH] [QuickPatch] Optimize selectStringTableEntryInDvar expression --- src/Components/Modules/QuickPatch.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Components/Modules/QuickPatch.cpp b/src/Components/Modules/QuickPatch.cpp index 56b1e191..1790ad3e 100644 --- a/src/Components/Modules/QuickPatch.cpp +++ b/src/Components/Modules/QuickPatch.cpp @@ -124,7 +124,7 @@ namespace Components std::string dvarName = args[3]; Game::dvar_t* dvar = Game::Dvar_FindVar(dvarName.data()); - if (Command::Find(dvarName) || (dvar && (dvar->flags & Game::DVAR_FLAG_WRITEPROTECTED || dvar->flags & Game::DVAR_FLAG_CHEAT || dvar->flags & Game::DVAR_FLAG_READONLY))) + if (Command::Find(dvarName) || (dvar && (dvar->flags & (Game::DVAR_FLAG_WRITEPROTECTED | Game::DVAR_FLAG_CHEAT | Game::DVAR_FLAG_READONLY)))) { return; }