Fixed possible crash bug in get_tr2 at29250 (Orangutanz)

This commit is contained in:
Scott Ehlert 2006-05-05 05:11:17 +00:00
parent 7cd10e4796
commit 133c7d6815

View File

@ -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;