Преглед на файлове

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);
     }