mirror of
https://github.com/gbdev/rgbds.git
synced 2026-09-15 18:27:06 +00:00
Correct condition to completely print both palettes and options.palSpec
This commit is contained in:
+1
-1
@@ -252,7 +252,7 @@ void reverse() {
|
|||||||
warnx("Colors in the palette file do not match those specified with '-c'");
|
warnx("Colors in the palette file do not match those specified with '-c'");
|
||||||
// This spacing aligns "...versus with `-c`" above the column of `-c` palettes
|
// This spacing aligns "...versus with `-c`" above the column of `-c` palettes
|
||||||
fputs("Colors specified in the palette file: ...versus with '-c':\n", stderr);
|
fputs("Colors specified in the palette file: ...versus with '-c':\n", stderr);
|
||||||
for (size_t i = 0; i < palettes.size() && i < options.palSpec.size(); ++i) {
|
for (size_t i = 0; i < palettes.size() || i < options.palSpec.size(); ++i) {
|
||||||
if (i < palettes.size()) {
|
if (i < palettes.size()) {
|
||||||
printPalette(palettes[i]);
|
printPalette(palettes[i]);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user