Fix false assert when CONNECTIVITY_DEBUG is enabled

This commit is contained in:
Jon Evans 2019-03-17 17:19:21 -04:00 committed by Wayne Stambaugh
parent 54bfeb742c
commit 7b9f186464
1 changed files with 2 additions and 1 deletions

View File

@ -930,7 +930,8 @@ void CONNECTION_GRAPH::buildConnectionGraph()
else else
{ {
#ifdef CONNECTIVITY_DEBUG #ifdef CONNECTIVITY_DEBUG
wxASSERT_MSG( false, "More than one net code for a neighbor!" ); if( c != candidate_net_code )
wxASSERT_MSG( false, "More than one net code for a neighbor!" );
#endif #endif
} }
} }