From 7c3eb42da37160383060b1f9ff333cdef6be7056 Mon Sep 17 00:00:00 2001 From: gered Date: Thu, 25 Mar 2021 14:46:20 -0400 Subject: [PATCH] whoops, didn't switch this around to use the word value ... --- gci_extract.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gci_extract.c b/gci_extract.c index 85f5907..a565095 100644 --- a/gci_extract.c +++ b/gci_extract.c @@ -243,7 +243,7 @@ int main(int argc, char *argv[]) { if (out_bin_filename) strncpy(out_filename, out_bin_filename, FILENAME_MAX-1); else - snprintf(out_filename, FILENAME_MAX-1, "q%05d.bin", bin_header->quest_number_byte); + snprintf(out_filename, FILENAME_MAX-1, "q%05d.bin", bin_header->quest_number_word); printf("Writing compressed quest .bin data to %s ...\n", out_filename); result = write_file(out_filename, bin_data, bin_data_size); @@ -258,7 +258,7 @@ int main(int argc, char *argv[]) { if (out_dat_filename) strncpy(out_filename, out_dat_filename, FILENAME_MAX-1); else - snprintf(out_filename, FILENAME_MAX-1, "q%05d.dat", bin_header->quest_number_byte); + snprintf(out_filename, FILENAME_MAX-1, "q%05d.dat", bin_header->quest_number_word); printf("Writing compressed quest .dat data to %s ...\n", out_filename); result = write_file(out_filename, dat_data, dat_data_size);