hedgewars/uGearsHedgehog.pas
changeset 13468 f1d349a52bc7
parent 13404 3d6aae2ae698
child 13537 ee77086fc5fa
--- a/hedgewars/uGearsHedgehog.pas	Tue Jul 10 17:11:31 2018 +0200
+++ b/hedgewars/uGearsHedgehog.pas	Tue Jul 10 18:00:04 2018 +0200
@@ -493,7 +493,7 @@
                 newGear^.Target.X:= TargetPoint.X;
                 newGear^.Target.Y:= TargetPoint.Y
                 end;
-            if (newGear <> nil) and (newGear^.CollisionMask and lfCurrentHog <> 0) then newGear^.CollisionMask:= newGear^.CollisionMask and (not lfCurrentHog);
+            if (newGear <> nil) and (newGear^.CollisionMask and lfCurHogCrate <> 0) then newGear^.CollisionMask:= newGear^.CollisionMask and (not lfCurHogCrate);
 
             // Clear FollowGear if using on a rope/parachute/saucer etc so focus stays with the hog's movement
             if altUse then