If weapon entity is deleted, delete its hook too
authorMario <mario@smbclan.net>
Mon, 26 Dec 2016 12:34:36 +0000 (22:34 +1000)
committerMario <mario@smbclan.net>
Mon, 26 Dec 2016 12:34:36 +0000 (22:34 +1000)
qcsrc/server/weapons/weaponsystem.qc

index 18675f0..93d2af5 100644 (file)
@@ -76,6 +76,7 @@ void CL_Weaponentity_Think(entity this)
        {
                // owner has new gun; remove old one
                if (this.weaponchild) delete(this.weaponchild);
+               if (this.hook) delete(this.hook);
                delete(this);
                return;
        }