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:
|
case PropEnt_Handle:
|
||||||
{
|
{
|
||||||
CBaseHandle &hndl = *(CBaseHandle *) ((uint8_t *) pEntity + offset);
|
CBaseHandle &hndl = *(CBaseHandle *) ((uint8_t *) pEntity + offset);
|
||||||
|
hndl.Set((IHandleEntity *) pOther);
|
||||||
if (!pOther)
|
|
||||||
{
|
|
||||||
hndl.Set(NULL);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
IHandleEntity *pHandleEnt = (IHandleEntity *) pOther;
|
|
||||||
hndl.Set(pHandleEnt);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (params[2] == Prop_Send && (pEdict != NULL))
|
if (params[2] == Prop_Send && (pEdict != NULL))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user