fix: opt
This commit is contained in:
parent
de71c08f3a
commit
869829fffa
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue
Block a user