mirror of
https://github.com/gbdev/rgbds.git
synced 2026-10-05 19:56:18 +00:00
Add error message for nigh-impossible proto-palette overflow
This commit is contained in:
1 parent
973fbb91bc
commit
9646f15b59
1 file changed
+1
-1
+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