Reduce reliance on MANDATORY_FIELDS and their implied order.

This commit is contained in:
Jeff Young
2025-01-22 17:51:57 +00:00
parent be38fa5cac
commit e19bce2f93
40 changed files with 312 additions and 284 deletions
+1 -1
View File
@@ -474,7 +474,7 @@ void SIM_MODEL::WriteFields( std::vector<SCH_FIELD>& aFields ) const
if( IsStoredInValue() )
SetFieldValue( aFields, SIM_VALUE_FIELD, m_serializer->GenerateValue(), false );
int lastFreeId = MANDATORY_FIELDS;
int lastFreeId = MANDATORY_FIELD_COUNT;
// Search for the first available value:
for( auto& fld : aFields )