changeset 2857 | 768dfbe276a5 |
parent 2848 | 8a1725b4f724 |
child 2858 | 4c5c4bc0ae35 |
--- a/hedgewars/GSHandlers.inc Wed Feb 24 03:03:43 2010 +0000 +++ b/hedgewars/GSHandlers.inc Wed Feb 24 13:29:06 2010 +0000 @@ -106,7 +106,7 @@ for i:= min(12, (3 + dmg div 10)) downto 0 do begin particle := AddVisualGear(hwRound(Gear^.X) - 5 + Random(10), hwRound(Gear^.Y) + 12, vgtDust); - particle^.dX := particle^.dX + (Gear^.dX / 5); + if particle <> nil then particle^.dX := particle^.dX + (Gear^.dX / 5); end; ApplyDamage(Gear, dmg);