hedgewars/uGears.pas
changeset 2741 7a84ce33f52f
parent 2730 f56592281526
child 2745 11fce231f24a
--- a/hedgewars/uGears.pas	Wed Feb 03 03:01:44 2010 +0000
+++ b/hedgewars/uGears.pas	Wed Feb 03 04:18:28 2010 +0000
@@ -2066,7 +2066,7 @@
 *)
 i:= _1;
 if (CurrentHedgehog <> nil) and CurrentHedgehog^.King then i:= _1_5;
-if (PHedgehog(Gear^.Hedgehog) <> nil) and (PHedgehog(Gear^.Hedgehog)^.King) then
+if (Gear^.Hedgehog <> nil) and (PHedgehog(Gear^.Hedgehog)^.King) then
    ModifyDamage:= hwRound(_0_01 * cDamageModifier * dmg * i * cDamagePercent * _0_5)
 else
    ModifyDamage:= hwRound(_0_01 * cDamageModifier * dmg * i * cDamagePercent)