From 96e03c54a5c6d9b417e75dfd45b2c136f4b11908 Mon Sep 17 00:00:00 2001 From: Lorenzo Cogotti Date: Tue, 16 Aug 2022 11:29:34 +0200 Subject: [PATCH] [rect] Fix variables name. --- rect.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rect.lua b/rect.lua index f555082..4131b59 100644 --- a/rect.lua +++ b/rect.lua @@ -51,7 +51,7 @@ function rect.union(x1,y1,w1,h1, x2,y2,w2,h2) x1 = min(x1, x2) y1 = min(y1, y2) xw1 = max(xw1, xw2) - xh1 = max(xh1, xh2) + yh1 = max(yh1, yh2) return x1, y1, xw1 - x1, yh1 - y1 end