From 33c16efaffbb27adeb006ed218092aa71ffc0c19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elm=C4=81rs=20=C4=80boli=C5=86=C5=A1?= Date: Fri, 18 Jun 2021 17:37:07 +0300 Subject: [PATCH] atlas fix --- core/atlas.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/atlas.lua b/core/atlas.lua index 06a59c1..7f9be94 100644 --- a/core/atlas.lua +++ b/core/atlas.lua @@ -133,7 +133,7 @@ function atlas:assignElement(element) if t then local quad, iquad --Refragmenting path - if self.users[element] then + if self.users[element] and self.users[element].quad and self.users[element].interQuad then --update by reference owo self.users[element].quad:setViewport((x-1)*BLOCK_SIZE, (y-1)*BLOCK_SIZE, elW, elH) self.users[element].interQuad:setViewport(0, 0, elW, elH)