Fix crashes and wtf behaviour introduced in r0b8beacff8a5
authorunc0rr
Mon, 03 Dec 2012 13:31:39 +0400
changeset 8199 886ed135665b
parent 8197 6d9371d6d045
child 8202 9f0e79ab51f0
Fix crashes and wtf behaviour introduced in r0b8beacff8a5
hedgewars/uGearsUtils.pas
--- a/hedgewars/uGearsUtils.pas	Mon Dec 03 12:02:32 2012 +0400
+++ b/hedgewars/uGearsUtils.pas	Mon Dec 03 13:31:39 2012 +0400
@@ -243,7 +243,7 @@
             end;
         uStats.HedgehogDamaged(Gear, AttackerHog, Damage, false);    
         end;
-    end;
+    end else
     //else if Gear^.Kind <> gtStructure then // not gtHedgehog nor gtStructure
         Gear^.Hedgehog:= AttackerHog;
     inc(Gear^.Damage, Damage);