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