Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/NesTiler.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2022-10-27 15:37:00 +0300
committerAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2022-10-27 15:37:00 +0300
commitd35f30394a061396eea0409aaad64b99b2eb59c0 (patch)
treef61e5ba7e424e5ddbefacab820b2980610c35a2a
parent4a8625a7caa4c5cda418134c6e378b0f7a7bcca1 (diff)
Minor fix
-rw-r--r--NesTiler/ColorFinder.cs2
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)