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

NesTiler.git/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 16:40:26 +0300
committerAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2022-10-27 16:40:26 +0300
commit63709d7d298968d62c754c5f6a114316de3bec61 (patch)
tree5d79697f3a54669d715f77748e29d7d77539406a /NesTiler/Program.cs
parentd35f30394a061396eea0409aaad64b99b2eb59c0 (diff)
Crop overflow check.
Diffstat (limited to 'NesTiler/Program.cs')
-rw-r--r--NesTiler/Program.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/NesTiler/Program.cs b/NesTiler/Program.cs
index 09e6519..852cbc1 100644
--- a/NesTiler/Program.cs
+++ b/NesTiler/Program.cs
@@ -225,7 +225,7 @@ namespace com.clusterrr.Famicom.NesTiler
if (calculatedPalettes.Count > maxCalculatedPaletteCount && !c.Lossy)
{
- throw new ArgumentOutOfRangeException($"Can't fit {calculatedPalettes.Count} palettes, {maxCalculatedPaletteCount} is maximum.");
+ throw new InvalidOperationException($"Can't fit {calculatedPalettes.Count} palettes, {maxCalculatedPaletteCount} is maximum.");
}
// Select palettes