Remove unnecessary null check.
This commit is contained in:
parent
f7a64167fc
commit
0b5e587db9
@ -1699,16 +1699,7 @@ static cell_t SetEntPropEnt(IPluginContext *pContext, const cell_t *params)
|
||||
case PropEnt_Handle:
|
||||
{
|
||||
CBaseHandle &hndl = *(CBaseHandle *) ((uint8_t *) pEntity + offset);
|
||||
|
||||
if (!pOther)
|
||||
{
|
||||
hndl.Set(NULL);
|
||||
}
|
||||
else
|
||||
{
|
||||
IHandleEntity *pHandleEnt = (IHandleEntity *) pOther;
|
||||
hndl.Set(pHandleEnt);
|
||||
}
|
||||
hndl.Set((IHandleEntity *) pOther);
|
||||
|
||||
if (params[2] == Prop_Send && (pEdict != NULL))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user