From 9646f15b59b88e7edfc0a339e08a1a102b130696 Mon Sep 17 00:00:00 2001 From: ISSOtm Date: Sat, 21 May 2022 15:54:21 +0200 Subject: [PATCH] Add error message for nigh-impossible proto-palette overflow --- src/gfx/process.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gfx/process.cpp b/src/gfx/process.cpp index 46493463..2b615a6e 100644 --- a/src/gfx/process.cpp +++ b/src/gfx/process.cpp @@ -1010,7 +1010,7 @@ void process() { attrs.protoPaletteID = protoPalettes.size(); if (protoPalettes.size() == AttrmapEntry::transparent) { // Check for overflow - abort(); // TODO: nice error message + fatal("Reached %zu proto-palettes... sorry, this image is too much for me to handle :(", AttrmapEntry::transparent); } protoPalettes.push_back(tileColors); contained:;