WithDecoration: fixed crash when Palette is null
This commit is contained in:
committed by
Matthias Mailänder
parent
ee02af3605
commit
dac35a60ad
@@ -52,7 +52,7 @@ namespace OpenRA.Mods.Common.Traits.Render
|
||||
|
||||
protected virtual PaletteReference GetPalette(Actor self, WorldRenderer wr)
|
||||
{
|
||||
return wr.Palette(Info.Palette + (Info.IsPlayerPalette ? self.Owner.InternalName : ""));
|
||||
return wr.Palette(Info.IsPlayerPalette ? Info.Palette + self.Owner.InternalName : Info.Palette);
|
||||
}
|
||||
|
||||
protected override IEnumerable<IRenderable> RenderDecoration(Actor self, WorldRenderer wr, int2 screenPos)
|
||||
|
||||
Reference in New Issue
Block a user