diff options
author | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2022-10-27 15:37:00 +0300 |
---|---|---|
committer | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2022-10-27 15:37:00 +0300 |
commit | d35f30394a061396eea0409aaad64b99b2eb59c0 (patch) | |
tree | f61e5ba7e424e5ddbefacab820b2980610c35a2a | |
parent | 4a8625a7caa4c5cda418134c6e378b0f7a7bcca1 (diff) |
Minor fix
-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) |