From 5db5f707a9bf7753f3c6f753be34c3dba3efc83f Mon Sep 17 00:00:00 2001 From: Diavolo Date: Sun, 29 Aug 2021 22:13:03 +0200 Subject: [PATCH] Remove name check --- src/Components/Modules/Dvar.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Components/Modules/Dvar.cpp b/src/Components/Modules/Dvar.cpp index 039ebaf1..86062a41 100644 --- a/src/Components/Modules/Dvar.cpp +++ b/src/Components/Modules/Dvar.cpp @@ -97,21 +97,21 @@ namespace Components } void Dvar::Var::set(int integer) { - if (this->dvar && this->dvar->name && this->dvar->type == Game::dvar_type::DVAR_TYPE_INT) + if (this->dvar && this->dvar->type == Game::dvar_type::DVAR_TYPE_INT) { this->dvar->current.integer = integer; } } void Dvar::Var::set(float value) { - if (this->dvar && this->dvar->name && this->dvar->type == Game::dvar_type::DVAR_TYPE_FLOAT) + if (this->dvar && this->dvar->type == Game::dvar_type::DVAR_TYPE_FLOAT) { this->dvar->current.value = value; } } void Dvar::Var::set(bool enabled) { - if (this->dvar && this->dvar->name && this->dvar->type == Game::dvar_type::DVAR_TYPE_BOOL) + if (this->dvar && this->dvar->type == Game::dvar_type::DVAR_TYPE_BOOL) { this->dvar->current.enabled = enabled; }