From b9e22f50ed267f3433a713a79c9f930439866965 Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Thu, 6 Oct 2011 23:17:00 +1300 Subject: [PATCH] tidy derp in CncColorPickerPaletteModifier --- OpenRA.Mods.Cnc/CncColorPickerPaletteModifier.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/OpenRA.Mods.Cnc/CncColorPickerPaletteModifier.cs b/OpenRA.Mods.Cnc/CncColorPickerPaletteModifier.cs index 8605aac481..c575a36a74 100644 --- a/OpenRA.Mods.Cnc/CncColorPickerPaletteModifier.cs +++ b/OpenRA.Mods.Cnc/CncColorPickerPaletteModifier.cs @@ -33,8 +33,7 @@ namespace OpenRA.Mods.Cnc public void InitPalette( WorldRenderer wr ) { var info = Rules.Info["player"].Traits.WithInterface() - .Where(p => p.BaseName == Info.PlayerPalette) - .First(); + .First(p => p.BaseName == Info.PlayerPalette); format = info.PaletteFormat; wr.AddPalette("colorpicker", wr.GetPalette(info.BasePalette)); }