Quellcode durchsuchen

Empty outputComputer and outputValues on Reset

ApisNecros vor 1 Jahr
Ursprung
Commit
f208369ff3
1 geänderte Dateien mit 2 neuen und 0 gelöschten Zeilen
  1. 2 0
      IntComp/Computer.js

+ 2 - 0
IntComp/Computer.js

@@ -392,6 +392,8 @@ module.exports = class Computer {
      */
     Reset() {
         this.stack = new Stack(this._initialMemory);
+        this.outputValues = null;
+        this.outputComputer = null;
     }
 
     /**