mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2025-12-08 02:58:24 +00:00
Fix invalid memory access in ConVarRefAbstract::SetValueInternal
This commit is contained in:
parent
ab928484e4
commit
fbe93e1528
@ -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 );
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user