This commit is contained in:
cha0s 2021-03-26 11:51:20 -05:00
parent de71c08f3a
commit 869829fffa

View File

@ -215,8 +215,7 @@ export default (latus) => {
tileAt([x, y]) {
const [w, h] = this.size;
const index = y * w + x;
return x < 0 || x >= w || y < 0 || y >= h ? undefined : this.data[index];
return x < 0 || x >= w || y < 0 || y >= h ? undefined : this.data[y * w + x];
}
toNetwork() {