Browse Source

Fix broken 2D array reference

I (somehow) forgot how to properly reference a "cell" in a 2D array...
ApisNecros 1 year ago
parent
commit
b24369dd40
1 changed files with 1 additions and 1 deletions
  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));