From 133c7d6815627f6b8f3399e1f9cd506fbff23ad9 Mon Sep 17 00:00:00 2001 From: Scott Ehlert Date: Fri, 5 May 2006 05:11:17 +0000 Subject: [PATCH] Fixed possible crash bug in get_tr2 at29250 (Orangutanz) --- dlls/fakemeta/fm_tr2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/fakemeta/fm_tr2.cpp b/dlls/fakemeta/fm_tr2.cpp index dfc72ec2..7a784e4a 100644 --- a/dlls/fakemeta/fm_tr2.cpp +++ b/dlls/fakemeta/fm_tr2.cpp @@ -170,7 +170,7 @@ static cell AMX_NATIVE_CALL get_tr2(AMX *amx, cell *params) } case TR_pHit: { - if (gfm_tr->pHit == NULL || FNullEnt(gfm_tr->pHit)) + if (tr->pHit == NULL || FNullEnt(tr->pHit)) return -1; return ENTINDEX(tr->pHit); break;