summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Bradley <jcb@pikum.xyz>2025-12-04 11:28:56 -0500
committerJonathan Bradley <jcb@pikum.xyz>2025-12-04 11:28:56 -0500
commit6fe777fcf30aab45b101c81cc1ad20b3a58e37f3 (patch)
treee0a1eac15f405518da1346718745fb93ccc7f801
parent78d07f005876cdfd3caf8144c455e8ae9ff77d76 (diff)
pke: increment iterator on font serialization skip
-rw-r--r--src/project.cpp5
1 files changed, 4 insertions, 1 deletions
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;