fix bug in Alu1 related to zero-storage boxes
authoradam <adam@megacz.com>
Sun, 25 Feb 2007 04:39:44 +0000 (05:39 +0100)
committeradam <adam@megacz.com>
Sun, 25 Feb 2007 04:39:44 +0000 (05:39 +0100)
ships/Alu1.ship

index 2a5019e..6818560 100644 (file)
@@ -18,7 +18,7 @@ ABS:
 == TeX ==============================================================
 == Fleeterpreter ====================================================
     public void service() {
-        if (box_in.dataReadyForShip() && box_inOp.dataReadyForShip()) {
+        if (box_in.dataReadyForShip() && box_inOp.dataReadyForShip() && box_out.readyForDataFromShip()) {
             long data   = box_in.removeDataForShip();
             long opcode = box_inOp.removeDataForShip();
             switch((int)opcode) {