From d776575ecac54174a2b9822657b7f9a8c53a80df Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Tue, 17 Dec 2024 23:50:36 +0100 Subject: [PATCH] Initialize all data chunk members --- src/logic/pakfile.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/logic/pakfile.h b/src/logic/pakfile.h index 7e50b32..865c897 100644 --- a/src/logic/pakfile.h +++ b/src/logic/pakfile.h @@ -75,7 +75,14 @@ class CPakDataChunk friend class CPakPage; public: - CPakDataChunk() = default; + CPakDataChunk() + : pageIndex(0) + , pageOffset(0) + , size(0) + , alignment(0) + , released(false) + , pData(nullptr) + {} CPakDataChunk(size_t size, uint8_t alignment, char* data) : pageIndex(0), pageOffset(0), size((int)size), alignment(alignment), pData(data), released(false) {}; CPakDataChunk(int pageIndex, int pageOffset, size_t size, uint8_t alignment, char* data) : pageIndex(pageIndex), pageOffset(pageOffset), size((int)size), alignment(alignment), pData(data), released(false) {};