This commit is contained in:
Night Owl 2017-07-17 10:15:17 +05:00
parent 6f8cd70328
commit 73a99df894

View File

@ -441,9 +441,16 @@ edict_t *EHANDLE::Get( void )
edict_t *EHANDLE::Set( edict_t *pent ) edict_t *EHANDLE::Set( edict_t *pent )
{ {
m_pent = pent; if( pent )
if( pent ) {
m_serialnumber = m_pent->serialnumber; m_pent = pent;
m_serialnumber = m_pent->serialnumber;
}
else
{
m_pent = NULL;
m_serialnumber = 0;
}
return pent; return pent;
} }