fixed CanvasKeyValueIterator loop
This commit is contained in:
parent
ec7535ccb6
commit
879e68d70d
@ -106,18 +106,22 @@ class CanvasKeyValueIterator {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (y in (this.index.y)...(this.canvas.length)){
|
var startX = this.index.x + 1;
|
||||||
|
|
||||||
|
for (y in this.index.y...this.canvas.length){
|
||||||
if (this.canvas[y] == null) {
|
if (this.canvas[y] == null) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (x in (this.index.x + 1)...(this.canvas[y].length)){
|
for (x in startX...(this.canvas[y].length)){
|
||||||
if (this.canvas[y][x] == null) {
|
if (this.canvas[y][x] == null) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
return {x: x, y: y};
|
return {x: x, y: y};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
startX = 0;
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user