7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-18 19:39:17 +00:00

Fix uninitialized member in non-user fields

This commit is contained in:
Jon Evans 2025-02-24 17:39:38 -05:00
parent 3b24b5b74b
commit 6be2468e05

View File

@ -38,6 +38,8 @@ PCB_FIELD::PCB_FIELD( FOOTPRINT* aParent, FIELD_T aFieldId, const wxString& aNam
{
if( m_id == FIELD_T::USER )
m_ordinal = aParent->GetNextFieldOrdinal();
else
m_ordinal = 0;
}