diff --git a/OpenRA.Mods.Cnc/TiberiumRefinery.cs b/OpenRA.Mods.Cnc/TiberiumRefinery.cs index 5401d15dc5..3c5946bcd8 100644 --- a/OpenRA.Mods.Cnc/TiberiumRefinery.cs +++ b/OpenRA.Mods.Cnc/TiberiumRefinery.cs @@ -41,9 +41,10 @@ namespace OpenRA.Mods.Cnc [Sync] public bool Visible = true; + static readonly Renderable[] Nothing = { }; public IEnumerable ModifyRender(Actor self, IEnumerable r) { - return Visible ? r : new Renderable[] { }; + return Visible ? r : Nothing; } } }