mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-01-24 05:34:18 +00: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_pent = pent;
|
||||
m_serialnumber = m_pent->serialnumber;
|
||||
}
|
||||
else
|
||||
{
|
||||
m_pent = NULL;
|
||||
m_serialnumber = 0;
|
||||
}
|
||||
return pent;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user