From 0c2dbdbc47179be18140051f19555f934272f9ae Mon Sep 17 00:00:00 2001 From: Steve Dudenhoeffer Date: Wed, 15 Sep 2004 18:55:30 +0000 Subject: [PATCH] Minor check in get_tr added --- dlls/fakemeta/fm_tr.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/fakemeta/fm_tr.cpp b/dlls/fakemeta/fm_tr.cpp index e46b74bf..f8fdae6d 100755 --- a/dlls/fakemeta/fm_tr.cpp +++ b/dlls/fakemeta/fm_tr.cpp @@ -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; }