mirror of
https://github.com/FWGS/hlsdk-xash3d
synced 2024-11-22 09:57:21 +01:00
Merge c66ee97ade
This commit is contained in:
parent
6f8cd70328
commit
73a99df894
@ -441,9 +441,16 @@ edict_t *EHANDLE::Get( void )
|
||||
|
||||
edict_t *EHANDLE::Set( edict_t *pent )
|
||||
{
|
||||
m_pent = pent;
|
||||
if( pent )
|
||||
m_serialnumber = m_pent->serialnumber;
|
||||
if( pent )
|
||||
{
|
||||
m_pent = pent;
|
||||
m_serialnumber = m_pent->serialnumber;
|
||||
}
|
||||
else
|
||||
{
|
||||
m_pent = NULL;
|
||||
m_serialnumber = 0;
|
||||
}
|
||||
return pent;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user