From 16ddccac00379b2d02b5b4b9f5ea9942bed0bef6 Mon Sep 17 00:00:00 2001 From: Gleb Mazovetskiy Date: Sat, 12 Oct 2024 21:38:20 +0100 Subject: [PATCH] Update source/d1formats/d1cl2.cpp Co-authored-by: Stephen C. Wills --- source/d1formats/d1cl2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/d1formats/d1cl2.cpp b/source/d1formats/d1cl2.cpp index 39251324..d2afd15f 100644 --- a/source/d1formats/d1cl2.cpp +++ b/source/d1formats/d1cl2.cpp @@ -445,7 +445,7 @@ bool D1Cl2::writeFileData(D1Gfx &gfx, QFile &outFile, bool isClx, const QString } // calculate sub header size - int subHeaderSize = isClx ? SUB_HEADER_SIZE : 6; + int subHeaderSize = !isClx ? SUB_HEADER_SIZE : 6; if (!isClx) { for (int n = 0; n < numFrames; n++) { D1GfxFrame *frame = gfx.getFrame(n);