Explorar o código

Fix broken 2D array reference

I (somehow) forgot how to properly reference a "cell" in a 2D array...
ApisNecros hai 1 ano
pai
achega
b24369dd40
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      starfish.js

+ 1 - 1
starfish.js

@@ -194,7 +194,7 @@ class CodeBox {
     }
 
     Swim() {
-        const instruction = this.box[this.pointer[0], this.pointer[1]];
+        const instruction = this.box[this.pointer[0]][this.pointer[1]];
 
         if(this.stringMode != 0 && instruction != this.stringMode) {
             this.stack.Push(dec(instruction));