mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2026-10-11 08:18:00 +08:00
Add nullptr check at CEntityKeyValues::AddConnectionDesc
This commit is contained in:
1 parent
84e8276611
commit
c97deff97f
1 file changed
+3
-1
@@ -186,7 +186,9 @@ void CEntityKeyValues::AddConnectionDesc(
|
||||
desc->m_pszOverrideParam = m_pAllocator->AllocString( pszOverrideParam ? pszOverrideParam : "" );
|
||||
desc->m_flDelay = flDelay;
|
||||
desc->m_nTimesToFire = nTimesToFire;
|
||||
desc->m_KV3Value = *kv3value;
|
||||
|
||||
if(kv3value)
|
||||
desc->m_KV3Value = *kv3value;
|
||||
}
|
||||
|
||||
void CEntityKeyValues::RemoveConnectionDesc( int nDesc )
|
||||
|
||||
Reference in new issue
Block a user