From 613139b95c3af4c67b1aaba9bf8883a038fac2df Mon Sep 17 00:00:00 2001 From: Zachary Hall Date: Tue, 28 Nov 2023 09:24:07 -0800 Subject: [PATCH] Fix off-by-one error --- src/main.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/main.c b/src/main.c index 9254cbb..0b317e0 100644 --- a/src/main.c +++ b/src/main.c @@ -166,7 +166,6 @@ int uploadimage(const char *filename) { printf("%u palette entries significant\nstarting at %u.\n", significant_palette_entries, significant_palette_start); } imgdatastart = read16(); - --imgdatastart; printf("Image starts at 0-indexed offset %4x\n", imgdatastart); direct_to_vera = width == vera_w && height == vera_h; if ((int8_t)read8() == -1) {