fix(textmenu): better scene loading

This commit is contained in:
Kazhnuz Klappsthul 2022-08-10 19:16:22 +02:00
parent 4722b734ed
commit de08fbd56b
1 changed files with 1 additions and 1 deletions

View File

@ -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