Wires connected to a component now get deleted with the component
[Mograsim.git] / net.mograsim.logic.model / src / net / mograsim / logic / model / model / components / atomic / ModelFixedOutput.java
index 2ff06f2..b889fad 100644 (file)
@@ -34,7 +34,7 @@ public class ModelFixedOutput extends ModelComponent
                super(model, name);
                this.bits = bits;
                setSize(width, height);
-               addPin(new Pin(this, "out", bits.length(), PinUsage.OUTPUT, width, height / 2));
+               addPin(new Pin(model, this, "out", bits.length(), PinUsage.OUTPUT, width, height / 2));
        }
 
        @Override