# HG changeset patch # User nemo # Date 1417382299 18000 # Node ID 7d41b04467064fe4212bbcdfd7cd4f7e885689d0 # Parent 2da35f88db23bd3f9202695bcaabc249a0661eed *sigh* diff -r 2da35f88db23 -r 7d41b0446706 share/hedgewars/Data/Maps/ClimbHome/map.lua --- a/share/hedgewars/Data/Maps/ClimbHome/map.lua Sun Nov 30 16:06:39 2014 -0500 +++ b/share/hedgewars/Data/Maps/ClimbHome/map.lua Sun Nov 30 16:18:19 2014 -0500 @@ -209,7 +209,7 @@ Cake = nil end - if GetHealth(Cake) < 999990 and gearIsInCircle(CurrentHedgehog,cx,cy,450) then + if Cake ~= nil and GetHealth(Cake) < 999990 and gearIsInCircle(CurrentHedgehog,cx,cy,450) then FireBoom(cx,cy,200) -- todo animate DeleteGear(Cake) Cake = nil