idk but this makes things better
This commit is contained in:
parent
77539866b5
commit
fc98520147
@ -67,7 +67,7 @@ class CanvasKeyValueIterator{
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function hasNext():Bool{
|
public function hasNext():Bool{
|
||||||
return index.y < canvas.length && index.x < canvas[index.y].length;
|
return index.y < canvas.length && index.x <= canvas[index.y].length;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function next():{key:Vec2<Int>, value:Pixel}{
|
public function next():{key:Vec2<Int>, value:Pixel}{
|
||||||
|
Loading…
Reference in New Issue
Block a user