Fixed ent bugs from JGHG
Changed MAKE_STRING to ALLOC_STRING
This commit is contained in:
parent
221d5b623d
commit
8973af479c
@ -5,7 +5,7 @@ int is_ent_valid(int iEnt)
|
|||||||
if (iEnt < 1 || iEnt > gpGlobals->maxEntities)
|
if (iEnt < 1 || iEnt > gpGlobals->maxEntities)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
if (iEnt >= 1 && iEnt <= 32)
|
if (iEnt >= 1 && iEnt <= gpGlobals->maxClients)
|
||||||
if (!MF_IsPlayerIngame(iEnt))
|
if (!MF_IsPlayerIngame(iEnt))
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user