mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Add error message for nigh-impossible proto-palette overflow
This commit is contained in:
@@ -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:;
|
||||||
|
|||||||
Reference in New Issue
Block a user