From 7abb091daf22243ad661dc43e3ec944455da9467 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivar=20J=C3=B6nsson?= Date: Sat, 30 Dec 2023 00:26:25 +0100 Subject: [PATCH] Fixed casting error --- Volt/Volt/src/Volt/Console/ConsoleVariableRegistry.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Volt/Volt/src/Volt/Console/ConsoleVariableRegistry.h b/Volt/Volt/src/Volt/Console/ConsoleVariableRegistry.h index 9eb5f72da..44009c78b 100644 --- a/Volt/Volt/src/Volt/Console/ConsoleVariableRegistry.h +++ b/Volt/Volt/src/Volt/Console/ConsoleVariableRegistry.h @@ -54,7 +54,7 @@ namespace Volt public: ConsoleVariable(std::string_view variableName, const T& defaultValue, std::string_view description); - const T& GetValue() const { return *reinterpret_cast(m_variableReference->Get()); } + const T& GetValue() const { return *reinterpret_cast(m_variableReference->Get()); } void SetValue(const T& value) { m_variableReference->Set(&value); } T& operator=(const T& other)