From de08fbd56b28afcdbcea7abbbbf40ba346b9cafa Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Wed, 10 Aug 2022 19:16:22 +0200 Subject: [PATCH] fix(textmenu): better scene loading --- birb/modules/gui/textmenu/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/birb/modules/gui/textmenu/init.lua b/birb/modules/gui/textmenu/init.lua index aa0fc95..b80898f 100644 --- a/birb/modules/gui/textmenu/init.lua +++ b/birb/modules/gui/textmenu/init.lua @@ -66,7 +66,7 @@ function TextMenu:generateSubmenu(pageName, label, parent, list, func, backWidge end function TextMenu:setFont(fontName) - local scene = core.scenemanager.currentScene + local scene = core.scenemanager.nextScene or core.scenemanager.currentScene self.font = scene.assets:getFont(fontName) end