mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2025-09-20 04:26:03 +08:00
Fix invalid memory access in ConVarRefAbstract::SetValueInternal
This commit is contained in:
@ -603,6 +603,7 @@ void ConVarRefAbstract::SetValueInternal( CSplitScreenSlot slot, CVValue_t *valu
|
|||||||
TypeTraits()->Copy( &prev, *curr_value );
|
TypeTraits()->Copy( &prev, *curr_value );
|
||||||
TypeTraits()->Destruct( curr_value );
|
TypeTraits()->Destruct( curr_value );
|
||||||
|
|
||||||
|
TypeTraits()->Construct( curr_value );
|
||||||
TypeTraits()->Copy( curr_value, *value );
|
TypeTraits()->Copy( curr_value, *value );
|
||||||
m_ConVarData->Clamp( slot );
|
m_ConVarData->Clamp( slot );
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user