changed to find_entity_by_class where stock used find_entity
This commit is contained in:
parent
513a005f3d
commit
31f59ea92e
|
@ -65,7 +65,7 @@ stock get_grenade_index(index, model[], len, grenadeindex = 0) {
|
|||
new entowner = index
|
||||
|
||||
for (;;) {
|
||||
entfind = find_entity(entfind, "grenade")
|
||||
entfind = find_entity_by_class(entfind, "grenade")
|
||||
|
||||
if (entfind && is_valid_ent(entfind)) {
|
||||
if (entity_get_edict(entFind, EV_ENT_owner) == entowner) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user