Remove unnecessary null check.

This commit is contained in:
Nicholas Hastings 2014-07-09 20:33:38 -04:00
parent f7a64167fc
commit 0b5e587db9

View File

@ -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))
{ {