Remove redundant compiler workaround

This commit is contained in:
Ivaylo Draganov
2019-05-25 13:32:12 +03:00
committed by abcdefg30
parent 1c6c55092f
commit 79d1899426
2 changed files with 2 additions and 5 deletions

View File

@@ -185,10 +185,8 @@ namespace OpenRA.Mods.Common.Widgets.Logic
header.Get<LabelWidget>("LABEL").GetText = () => title;
missionList.AddChild(header);
foreach (var p in previews)
foreach (var preview in previews)
{
var preview = p;
var item = ScrollItemWidget.Setup(template,
() => selectedMap != null && selectedMap.Uid == preview.Uid,
() => SelectMap(preview),