From d35f30394a061396eea0409aaad64b99b2eb59c0 Mon Sep 17 00:00:00 2001 From: Alexey 'Cluster' Avdyukhin Date: Thu, 27 Oct 2022 16:37:00 +0400 Subject: Minor fix --- NesTiler/ColorFinder.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NesTiler/ColorFinder.cs b/NesTiler/ColorFinder.cs index d3bea55..a6f55b0 100644 --- a/NesTiler/ColorFinder.cs +++ b/NesTiler/ColorFinder.cs @@ -51,7 +51,7 @@ namespace com.clusterrr.Famicom.NesTiler var index = kv.Key.ToLower().StartsWith("0x") ? Convert.ToByte(kv.Key.Substring(2), 16) : byte.Parse(kv.Key); if (FORBIDDEN_COLORS.Contains(index)) Trace.WriteLine($"WARNING! color #{kv.Key} is forbidden color, it will be ignored."); - if (index > 0x3D) throw new ArgumentException($"{kv.Key} - invalid color index.", filename); + if (index > 0x3F) throw new ArgumentException($"{kv.Key} - invalid color index.", filename); return index; } catch (Exception ex) when (ex is FormatException || ex is OverflowException) -- cgit v1.2.3