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