mirror of https://github.com/schoebel/mars
infra: fix automatic killing on outputless bricks
This commit is contained in:
parent
03803eeea4
commit
806a62289c
|
@ -1220,7 +1220,7 @@ restart:
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
// only kill unconnected bricks
|
// only kill unconnected bricks
|
||||||
if (brick->outputs[0] && brick->outputs[0]->nr_connected > 0) {
|
if (brick->nr_outputs > 0 && brick->outputs[0] && brick->outputs[0]->nr_connected > 0) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (only_off) {
|
if (only_off) {
|
||||||
|
|
Loading…
Reference in New Issue