Some minor cleanup in TraitDictionary and affected callsites.

This commit is contained in:
RoosterDragon
2014-06-14 08:17:26 +01:00
parent 50d3929862
commit 909c5c7037
5 changed files with 34 additions and 32 deletions

View File

@@ -48,7 +48,7 @@ namespace OpenRA.Graphics
palette = new HardwarePalette();
palettes = new Cache<string, PaletteReference>(CreatePaletteReference);
foreach (var pal in world.traitDict.ActorsWithTraitMultiple<IPalette>(world))
foreach (var pal in world.traitDict.ActorsWithTrait<IPalette>())
pal.Trait.InitPalette(this);
palette.Initialize();