Better error reporting to try and catch 6635.

This commit is contained in:
Jeff Young 2020-12-12 12:22:52 +00:00
parent 2c2630ef9e
commit 807eef1208
1 changed files with 3 additions and 4 deletions

View File

@ -689,10 +689,9 @@ static bool collideSingleShapes( const SHAPE* aA, const SHAPE* aB, int aClearanc
break;
}
bool unsupported_collision = true;
(void) unsupported_collision; // make gcc quiet
wxASSERT( unsupported_collision == false );
wxFAIL_MSG( wxString::Format( "Unsupported collision: %s with %s",
SHAPE_TYPE_asString( aA->Type() ),
SHAPE_TYPE_asString( aB->Type() ) ) );
return false;
}