diff options
| -rw-r--r-- | src/project.cpp | 5 |
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; |
