hedgewars/GSHandlers.inc
changeset 5806 6778f0a7d896
parent 5786 ffe2401e287f
child 5807 5c8fe58dead5
--- a/hedgewars/GSHandlers.inc	Wed Sep 07 20:54:32 2011 -0400
+++ b/hedgewars/GSHandlers.inc	Thu Sep 08 00:29:01 2011 -0400
@@ -4948,6 +4948,8 @@
 	    AfterAttack;
             if Gear = CurAmmoGear then CurAmmoGear := nil;
             DeleteCI(HH^.Gear);
+            if FollowGear = HH^.Gear then FollowGear:= nil;
+            if lastGearByUID = HH^.Gear then lastGearByUID := nil;
             RemoveGearFromList(HH^.Gear);
             with HH^.Gear^ do
                 begin