瀏覽代碼

Fix broken 2D array reference

I (somehow) forgot how to properly reference a "cell" in a 2D array...
ApisNecros 1 年之前
父節點
當前提交
b24369dd40
共有 1 個文件被更改,包括 1 次插入1 次删除
  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));