er. let's reference the right gear, shall we?
authornemo
Thu, 08 Sep 2011 21:20:12 -0400
changeset 5820 c9fe3b376a84
parent 5818 d071162d550d
child 5823 f906f6645e02
er. let's reference the right gear, shall we?
hedgewars/HHHandlers.inc
--- 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;