From a9cd2d41c76ec80b74cab14d912b12c987d9956a Mon Sep 17 00:00:00 2001 From: abcdefg30 Date: Wed, 12 Jan 2022 14:49:17 +0100 Subject: [PATCH] Fix ToAhsv using the wrong type for alpha --- OpenRA.Game/Primitives/Color.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Game/Primitives/Color.cs b/OpenRA.Game/Primitives/Color.cs index a8ebec609d..403c1cc147 100644 --- a/OpenRA.Game/Primitives/Color.cs +++ b/OpenRA.Game/Primitives/Color.cs @@ -49,7 +49,7 @@ namespace OpenRA.Primitives return FromAhsv(255, h, s, v); } - public (float A, float H, float S, float V) ToAhsv() + public (int A, float H, float S, float V) ToAhsv() { var (h, s, v) = RgbToHsv(R, G, B); return (A, h, s, v);