From 6fe777fcf30aab45b101c81cc1ad20b3a58e37f3 Mon Sep 17 00:00:00 2001 From: Jonathan Bradley Date: Thu, 4 Dec 2025 11:28:56 -0500 Subject: pke: increment iterator on font serialization skip --- src/project.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/project.cpp b/src/project.cpp index 32f6503..af602ce 100644 --- a/src/project.cpp +++ b/src/project.cpp @@ -457,7 +457,10 @@ void PkeProject_Save(const char *filePath) { bkt_arr_font_types = FontType_GetFonts(); b = pk_bkt_arr_iter_begin(bkt_arr_font_types, &iter_font_type); while(b) { - if (PK_HAS_FLAG(iter_font_type->entity_flags, ENTITY_FLAG_DO_NOT_SERIALIZE)) continue; + if (PK_HAS_FLAG(iter_font_type->entity_flags, ENTITY_FLAG_DO_NOT_SERIALIZE)) { + b = pk_bkt_arr_iter_increment(bkt_arr_font_types, &iter_font_type); + continue; + } stream << PKE_PROJ_FILE_OBJ_FONT << std::endl; FontType_Serialize(stream, iter_font_type); stream << PKE_PROJ_FILE_OBJ_END << std::endl; -- cgit v1.2.3