pcbnew: Fix crash in modedit saving

This commit is contained in:
Seth Hillbrand 2019-06-01 19:44:29 -07:00
parent 9163ac543a
commit b244a940ef
1 changed files with 1 additions and 1 deletions

View File

@ -804,7 +804,7 @@ bool FOOTPRINT_EDIT_FRAME::SaveFootprintToBoard( bool aAddNew )
for( auto mod : mainpcb->Modules() )
{
if( module_in_edit->GetLink() == source_module->GetTimeStamp() )
if( module_in_edit->GetLink() == mod->GetTimeStamp() )
{
source_module = mod;
break;