Skip to content

Commit

Permalink
Fixed casting error
Browse files Browse the repository at this point in the history
  • Loading branch information
ChunkTreasure1 committed Dec 29, 2023
1 parent d6d7ea9 commit 7abb091
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Volt/Volt/src/Volt/Console/ConsoleVariableRegistry.h
Original file line number Diff line number Diff line change
Expand Up @@ -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<T*>(m_variableReference->Get()); }
const T& GetValue() const { return *reinterpret_cast<const T*>(m_variableReference->Get()); }
void SetValue(const T& value) { m_variableReference->Set(&value); }

T& operator=(const T& other)
Expand Down

0 comments on commit 7abb091

Please sign in to comment.