浏览代码

Reset the outputValues array to the correct value

ApisNecros 1 年之前
父节点
当前提交
1c912f39f6
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      IntComp/Computer.js

+ 1 - 1
IntComp/Computer.js

@@ -412,7 +412,7 @@ module.exports = class Computer {
      */
     Reset() {
         this.stack = new Stack(this._initialMemory);
-        this.outputValues = null;
+        this.outputValues = [];
         this.outputComputer = null;
         this.options.inputModeMap = DeepClone(this.options._initialInputModeMap);
     }