From 7b91b9c781895236b0b12e3168efccbe149e0461 Mon Sep 17 00:00:00 2001 From: FutureRave Date: Sat, 19 Feb 2022 23:10:35 +0000 Subject: [PATCH] make code more readable --- src/Components/Modules/Dvar.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Components/Modules/Dvar.cpp b/src/Components/Modules/Dvar.cpp index e2b163a0..d5ec5fea 100644 --- a/src/Components/Modules/Dvar.cpp +++ b/src/Components/Modules/Dvar.cpp @@ -83,7 +83,8 @@ namespace Components if (this->dvar == nullptr) return vector; - if (this->dvar && (this->dvar->type == Game::dvar_type::DVAR_TYPE_FLOAT_2 || this->dvar->type == Game::dvar_type::DVAR_TYPE_FLOAT_3 || this->dvar->type == Game::dvar_type::DVAR_TYPE_FLOAT_4)) + if (this->dvar->type == Game::dvar_type::DVAR_TYPE_FLOAT_2 || this->dvar->type == Game::dvar_type::DVAR_TYPE_FLOAT_3 + || this->dvar->type == Game::dvar_type::DVAR_TYPE_FLOAT_4) { return this->dvar->current.vector; } @@ -280,7 +281,7 @@ namespace Components } } - return Dvar::SetFromStringByNameExternal(dvarName, string); + Dvar::SetFromStringByNameExternal(dvarName, string); } void Dvar::SetFromStringByNameExternal(const char* dvarName, const char* string)