fix Lut3 so it checks if output is empty
[fleet.git] / ships / Lut3.ship
index c6f39cf..5b9479e 100644 (file)
@@ -43,7 +43,8 @@ under input {\tt in3}.
       if (box_in1.dataReadyForShip() &&
           box_in2.dataReadyForShip() &&
           box_in3.dataReadyForShip() &&
-          box_inLut.dataReadyForShip()) {
+          box_inLut.dataReadyForShip() &&
+          box_out.readyForDataFromShip()) {
           long a      = box_in1.removeDataForShip();
           long b      = box_in2.removeDataForShip();
           long c      = box_in3.removeDataForShip();