Fix a VS code style suggestion.

This commit is contained in:
Paul Chote
2018-09-09 04:25:37 +01:00
committed by abcdefg30
parent 9e85aefca8
commit 6ac7f887c0

View File

@@ -492,12 +492,9 @@ namespace OpenRA.Mods.Common.Widgets.Logic
} }
void LoadMapPreviewRules(MapPreview map) void LoadMapPreviewRules(MapPreview map)
{
new Task(() =>
{ {
// Force map rules to be loaded on this background thread // Force map rules to be loaded on this background thread
map.PreloadRules(); new Task(map.PreloadRules).Start();
}).Start();
} }
void UpdateCurrentMap() void UpdateCurrentMap()