diff options
-rw-r--r-- | NesTiler/ColorFinder.cs | 2 |
1 files changed, 1 insertions, 1 deletions
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) |