Skip to content

Commit 9fff41e

Browse files
committed
Fix invalid memory access in ConVarRefAbstract::SetValueInternal
1 parent 788e54c commit 9fff41e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tier1/convar.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -603,6 +603,7 @@ void ConVarRefAbstract::SetValueInternal( CSplitScreenSlot slot, CVValue_t *valu
603603
TypeTraits()->Copy( &prev, *curr_value );
604604
TypeTraits()->Destruct( curr_value );
605605

606+
TypeTraits()->Construct( curr_value );
606607
TypeTraits()->Copy( curr_value, *value );
607608
m_ConVarData->Clamp( slot );
608609

0 commit comments

Comments
 (0)