mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-25 22:35:37 +03:00
Fixed possible crash bug in get_tr2 at29250 (Orangutanz)
This commit is contained in:
parent
7cd10e4796
commit
133c7d6815
@ -170,7 +170,7 @@ static cell AMX_NATIVE_CALL get_tr2(AMX *amx, cell *params)
|
|||||||
}
|
}
|
||||||
case TR_pHit:
|
case TR_pHit:
|
||||||
{
|
{
|
||||||
if (gfm_tr->pHit == NULL || FNullEnt(gfm_tr->pHit))
|
if (tr->pHit == NULL || FNullEnt(tr->pHit))
|
||||||
return -1;
|
return -1;
|
||||||
return ENTINDEX(tr->pHit);
|
return ENTINDEX(tr->pHit);
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user