From db23c9c9523daeca9afe86519b5d3b9a1b70cf08 Mon Sep 17 00:00:00 2001 From: yyc12345 Date: Mon, 2 Oct 2023 11:38:14 +0800 Subject: [PATCH] finish CKGroup writer --- LibCmo/CK2/ObjImpls/CKGroup.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/LibCmo/CK2/ObjImpls/CKGroup.cpp b/LibCmo/CK2/ObjImpls/CKGroup.cpp index 17bb0b7..5b8af4b 100644 --- a/LibCmo/CK2/ObjImpls/CKGroup.cpp +++ b/LibCmo/CK2/ObjImpls/CKGroup.cpp @@ -37,6 +37,12 @@ namespace LibCmo::CK2::ObjImpls { bool suc = CKBeObject::Save(chunk, file, flags); if (!suc) return false; + // write grouped object + { + chunk->WriteIdentifier(CK_STATESAVEFLAGS_GROUP::CK_STATESAVE_GROUPALL); + chunk->WriteXObjectPointerArray(m_ObjectArray); + } + chunk->SetClassId(CK_CLASSID::CKCID_GROUP); return true; }