diff --git a/OpenRA.Game/GameRules/WeaponInfo.cs b/OpenRA.Game/GameRules/WeaponInfo.cs index 31aa4d975c..98497ae9ae 100644 --- a/OpenRA.Game/GameRules/WeaponInfo.cs +++ b/OpenRA.Game/GameRules/WeaponInfo.cs @@ -203,12 +203,10 @@ namespace OpenRA.GameRules var world = args.SourceActor.World; foreach (var warhead in Warheads) { - var wh = warhead; // force the closure to bind to the current warhead - - if (wh.Delay > 0) - world.AddFrameEndTask(w => w.Add(new DelayedImpact(wh.Delay, wh, target, args))); + if (warhead.Delay > 0) + world.AddFrameEndTask(w => w.Add(new DelayedImpact(warhead.Delay, warhead, target, args))); else - wh.DoImpact(target, args); + warhead.DoImpact(target, args); } }