hedgewars/uTeams.pas
changeset 5991 c3b7064d9226
parent 5965 e529b28d10e9
child 5995 647d52370ce9
--- a/hedgewars/uTeams.pas	Thu Sep 22 14:02:44 2011 +0200
+++ b/hedgewars/uTeams.pas	Thu Sep 22 17:19:39 2011 +0400
@@ -427,12 +427,17 @@
 with Team do
     for i:= 0 to cMaxHHIndex do
         with Hedgehogs[i] do
+            begin
+            if Hedgehogs[i].GearHidden <> nil then
+                RestoreHog(@Hedgehogs[i]);
+
             if Gear <> nil then
                 begin
                 Gear^.Invulnerable:= false;
                 Gear^.Damage:= Gear^.Health;
                 Gear^.State:= (Gear^.State or gstHHGone) and not gstHHDriven
                 end
+            end
 end;
 
 procedure chAddHH(var id: shortstring);