Ver código fonte

Empty outputComputer and outputValues on Reset

ApisNecros 1 ano atrás
pai
commit
f208369ff3
1 arquivos alterados com 2 adições e 0 exclusões
  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;
     }
 
     /**