Wires connected to a component now get deleted with the component
[Mograsim.git] / net.mograsim.logic.model.am2900 / src / net / mograsim / logic / model / am2900 / components / Modelinc12.java
index 7979ae3..2f4483a 100644 (file)
@@ -24,9 +24,9 @@ public class Modelinc12 extends SimpleRectangularHardcodedModelComponent
        {
                super(model, "inc12", name, "Incrementer");
                setSize(40, 20);
-               addPin(new Pin(this, "A", 12, PinUsage.INPUT, 20, 20), Position.TOP);
-               addPin(new Pin(this, "CI", 1, PinUsage.INPUT, 40, 10), Position.LEFT);
-               addPin(new Pin(this, "Y", 12, PinUsage.OUTPUT, 20, 0), Position.BOTTOM);
+               addPin(new Pin(model, this, "A", 12, PinUsage.INPUT, 20, 20), Position.TOP);
+               addPin(new Pin(model, this, "CI", 1, PinUsage.INPUT, 40, 10), Position.LEFT);
+               addPin(new Pin(model, this, "Y", 12, PinUsage.OUTPUT, 20, 0), Position.BOTTOM);
        }
 
        @Override