From 98b80d44ebee9996ab6951407dc22f5e579d89d1 Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Thu, 6 Dec 2018 16:55:18 +1300 Subject: [PATCH] Remove legacy workaround that crashes modern Mono. --- OpenRA.Game/Graphics/Palette.cs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/OpenRA.Game/Graphics/Palette.cs b/OpenRA.Game/Graphics/Palette.cs index 8d4eb6bc46..35254b6bec 100644 --- a/OpenRA.Game/Graphics/Palette.cs +++ b/OpenRA.Game/Graphics/Palette.cs @@ -45,11 +45,6 @@ namespace OpenRA.Graphics for (var i = 0; i < Size; i++) pal.Entries[i] = palette.GetColor(i); - // hack around a mono bug -- the palette flags get set wrong. - if (Platform.CurrentPlatform != PlatformType.Windows) - typeof(ColorPalette).GetField("flags", - BindingFlags.Instance | BindingFlags.NonPublic).SetValue(pal, 1); - return pal; }