Skip to content

Commit

Permalink
Fixed casting error (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChunkTreasure1 authored Dec 29, 2023
2 parents 7b12987 + 7abb091 commit 2c383f9
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 2c383f9

Please sign in to comment.