Add error message for nigh-impossible proto-palette overflow

This commit is contained in:
ISSOtm
2022-05-21 15:54:21 +02:00
committed by Eldred Habert
parent 973fbb91bc
commit 9646f15b59

View File

@@ -1010,7 +1010,7 @@ void process() {
attrs.protoPaletteID = protoPalettes.size(); attrs.protoPaletteID = protoPalettes.size();
if (protoPalettes.size() == AttrmapEntry::transparent) { // Check for overflow 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); protoPalettes.push_back(tileColors);
contained:; contained:;