Fix find_unconnected_ports

This commit is contained in:
Weird Constructor 2022-07-24 19:11:02 +02:00
parent 7bcca553fc
commit a336ae9420

View file

@ -401,8 +401,10 @@ impl Cell {
}; };
for dir in options { for dir in options {
if let Some(pos) = self.is_port_dir_connected(m, *dir) { if self.is_port_dir_connected(m, *dir).is_none() {
unused_ports.push((*dir, pos)); if let Some(pos) = dir.offs_pos((self.x as usize, self.y as usize)) {
unused_ports.push((*dir, pos));
}
} }
} }