Fix Cloak modifying the palette of decoration renderables.

This commit is contained in:
Paul Chote
2016-01-11 00:36:55 +00:00
parent 652f38ff66
commit 62c222ebd2

View File

@@ -106,7 +106,7 @@ namespace OpenRA.Mods.Common.Traits
if (palette == null)
return r;
else
return r.Select(a => a.WithPalette(palette));
return r.Select(a => a.IsDecoration ? a : a.WithPalette(palette));
}
else
return SpriteRenderable.None;