From d7956049782bfec0a61c371243adbaabb4eb44ff Mon Sep 17 00:00:00 2001 From: Greyscale Date: Mon, 26 Jul 2010 14:31:56 -0700 Subject: [PATCH] r634 continued. --- src/zr/infect.inc | 1 + src/zr/weapons/weapons.inc | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/zr/infect.inc b/src/zr/infect.inc index 3585195..06df5e8 100644 --- a/src/zr/infect.inc +++ b/src/zr/infect.inc @@ -684,6 +684,7 @@ InfectZombieToHuman(client, bool:respawn = false, bool:protect = false) if (knife != -1) { RemovePlayerItem(client, knife); + RemoveEdict(knife); GivePlayerItem(client, "weapon_knife"); } diff --git a/src/zr/weapons/weapons.inc b/src/zr/weapons/weapons.inc index beb5319..fa00b47 100644 --- a/src/zr/weapons/weapons.inc +++ b/src/zr/weapons/weapons.inc @@ -818,6 +818,7 @@ stock WeaponsRemoveClientGrenades(client, bool:weaponsdrop) else { RemovePlayerItem(client, grenade); + RemoveEdict(grenade); } // Find next grenade. @@ -847,6 +848,7 @@ stock WeaponsRefreshClientWeapon(client, WeaponsSlot:slot) // Refresh weapon. RemovePlayerItem(client, weaponindex); + RemoveEdict(weaponindex); GivePlayerItem(client, entityname); }