# HG changeset patch
# User unc0rr
# Date 1354527099 -14400
# Node ID 886ed135665b235a4d4d660123e4d0b2b0958d6c
# Parent  6d9371d6d045e6a9884d12bcf8db5c7db7a8658c
Fix crashes and wtf behaviour introduced in r0b8beacff8a5

diff -r 6d9371d6d045 -r 886ed135665b 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);