Minor check in get_tr added
This commit is contained in:
parent
1485014229
commit
0c2dbdbc47
|
@ -153,6 +153,8 @@ static cell AMX_NATIVE_CALL get_tr(AMX *amx, cell *params)
|
||||||
}
|
}
|
||||||
case TR_pHit:
|
case TR_pHit:
|
||||||
{
|
{
|
||||||
|
if (gfm_tr->pHit == NULL || FNullEnt(gfm_tr->pHit))
|
||||||
|
return -1;
|
||||||
return ENTINDEX(gfm_tr->pHit);
|
return ENTINDEX(gfm_tr->pHit);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user