mirror of
https://github.com/gbdev/rgbds.git
synced 2026-12-03 15:28:39 +00:00
Fix reversing an image with an empty -p/--palette file (#2227)
This commit is contained in:
1 parent
cc88a7a437
commit
b99069e25d
5 files changed
+7
No files matched your search
@@ -235,6 +235,10 @@ void reverse() {
|
||||
}
|
||||
}
|
||||
|
||||
if (palettes.empty()) {
|
||||
fatal("Read 0 palettes");
|
||||
}
|
||||
|
||||
if (palettes.size() > options.nbPalettes) {
|
||||
warnx(
|
||||
"Read %zu palettes, more than the specified limit of %" PRIu16,
|
||||
|
||||
Reference in new issue
Block a user