Merge pull request #432 from smunaut/fix_disconnect

design_utils: Set port.net to null when disconnecting
This commit is contained in:
David Shah 2020-04-24 15:35:33 +01:00 committed by GitHub
commit 5e40589114
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -111,6 +111,7 @@ void disconnect_port(const Context *ctx, CellInfo *cell, IdString port_name)
port.net->users.end());
if (port.net->driver.cell == cell && port.net->driver.port == port_name)
port.net->driver.cell = nullptr;
port.net = nullptr;
}
}