diff --git a/tpl/macro.twig b/tpl/macro.twig index 34a5da4..164bf85 100644 --- a/tpl/macro.twig +++ b/tpl/macro.twig @@ -72,10 +72,10 @@ public {{_self.struct_type(o)}} {{o.name}} {{_self.base_struct_class(o)}} return {{fields_count(o)}}; } - public {{_self.override(o)}} int getWritableFieldsCount() + public {{_self.override(o)}} int getDirtyFieldsCount() { {%~ if has_token(o, 'bitfields') ~%} - return fields_mask.GetDirtyFieldsCount() + MetaSync.MASK_HEADER_FIELDS_COUNT; + return fields_mask.GetDirtyFieldsCount(); {% else %} return getFieldsCount(); {%- endif ~%}