changed to find_entity_by_class where stock used find_entity

This commit is contained in:
Johnny Bergström 2004-03-09 14:12:10 +00:00
parent 513a005f3d
commit 31f59ea92e

View File

@ -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) {