Parcourir la source

Fix broken 2D array reference

I (somehow) forgot how to properly reference a "cell" in a 2D array...
ApisNecros il y a 1 an
Parent
commit
b24369dd40
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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));