Minor check in get_tr added

This commit is contained in:
Steve Dudenhoeffer 2004-09-15 18:55:30 +00:00
parent 1485014229
commit 0c2dbdbc47

View File

@ -153,6 +153,8 @@ static cell AMX_NATIVE_CALL get_tr(AMX *amx, cell *params)
}
case TR_pHit:
{
if (gfm_tr->pHit == NULL || FNullEnt(gfm_tr->pHit))
return -1;
return ENTINDEX(gfm_tr->pHit);
break;
}