Browse Source

Empty outputComputer and outputValues on Reset

ApisNecros 1 năm trước cách đây
mục cha
commit
f208369ff3
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  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;
     }
 
     /**