mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2025-12-09 19:48:23 +00:00
Fix ConVarRef GetInt / GetFloat / GetBool (#298)
This commit is contained in:
parent
dfb90e25c1
commit
b723382828
@ -535,7 +535,7 @@ FORCEINLINE_CVAR const char *ConVarRef::GetName() const
|
||||
//-----------------------------------------------------------------------------
|
||||
FORCEINLINE_CVAR float ConVarRef::GetFloat( void ) const
|
||||
{
|
||||
return m_pConVarState->m_fValue;
|
||||
return m_pConVarState->GetFloat();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
@ -543,7 +543,7 @@ FORCEINLINE_CVAR float ConVarRef::GetFloat( void ) const
|
||||
//-----------------------------------------------------------------------------
|
||||
FORCEINLINE_CVAR int ConVarRef::GetInt( void ) const
|
||||
{
|
||||
return m_pConVarState->m_nValue;
|
||||
return m_pConVarState->GetInt();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
Loading…
Reference in New Issue
Block a user