From 39812a93705f8e98de7b3312303c13bbc17e00f5 Mon Sep 17 00:00:00 2001 From: Diavolo Date: Thu, 3 Feb 2022 13:08:25 +0100 Subject: [PATCH] I forgot I'm not a Java programmer --- 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 5fa042c7..057bc52b 100644 --- a/src/Components/Modules/Dvar.cpp +++ b/src/Components/Modules/Dvar.cpp @@ -15,17 +15,17 @@ namespace Components { assert(!this->dvarName.empty() && this->dvar == nullptr); - auto* dvar = Game::Dvar_FindVar(this->dvarName.data()); + auto* var = Game::Dvar_FindVar(this->dvarName.data()); // If the dvar can't be found it will be registered as an empty string dvar - if (dvar == nullptr) + if (var == nullptr) { this->dvar = const_cast(Game::Dvar_SetFromStringByNameFromSource(this->dvarName.data(), "", Game::DvarSetSource::DVAR_SOURCE_INTERNAL)); } else { - this->dvar = dvar; + this->dvar = var; } }