1
0
mirror of https://github.com/alliedmodders/hl2sdk.git synced 2025-09-19 03:56:10 +08:00

Add nullptr check at CEntityKeyValues::AddConnectionDesc

This commit is contained in:
GAMMACASE
2025-08-06 19:04:59 +03:00
parent 22084aed20
commit 8c1727d90d

View File

@ -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 )