hedgewars/HHHandlers.inc
changeset 5820 c9fe3b376a84
parent 5818 d071162d550d
child 5829 3ec95dc2b249
--- a/hedgewars/HHHandlers.inc	Thu Sep 08 21:18:44 2011 -0400
+++ b/hedgewars/HHHandlers.inc	Thu Sep 08 21:20:12 2011 -0400
@@ -1058,8 +1058,8 @@
                         RestoreHog(@Hedgehogs[i]);
                         if Hedgehogs[i].Gear <> nil then 
                             begin
-                            Gear^.State:= Gear^.State or gstHHGone;
-                            Gear^.doStep:= @doStepHedgehogGone
+                            Hedgehogs[i].Gear^.State:= Gear^.State or gstHHGone;
+                            Hedgehogs[i].Gear^.doStep:= @doStepHedgehogGone
                             end
                         end;