From b70c3451fae7bbd529c25a7967f8fa7508116075 Mon Sep 17 00:00:00 2001 From: Gabriel Tofvesson Date: Tue, 1 Oct 2024 16:02:21 +0000 Subject: [PATCH] Fix object reference in element constructor --- gfx/element.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gfx/element.lua b/gfx/element.lua index af8eb8f..2bf8a61 100644 --- a/gfx/element.lua +++ b/gfx/element.lua @@ -31,7 +31,7 @@ function Element:new(o) obj.__index = self if obj.render and obj.render.parent then - self:_reload() + obj:_reload() end return obj