From fc985201472fa0039705c7ac6ac77d9adb0006a8 Mon Sep 17 00:00:00 2001 From: Djeeberjr Date: Sun, 20 Feb 2022 14:39:50 +0100 Subject: [PATCH] idk but this makes things better --- src/lib/ui/Canvas.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/ui/Canvas.hx b/src/lib/ui/Canvas.hx index ff0ebc8..34d3a27 100644 --- a/src/lib/ui/Canvas.hx +++ b/src/lib/ui/Canvas.hx @@ -67,7 +67,7 @@ class CanvasKeyValueIterator{ } 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, value:Pixel}{