fix(pause): force visibility of the main menu

It make sure that the menu will be visible when the pause view
is started with the character menu selected
This commit is contained in:
Kazhnuz 2020-10-03 14:36:38 +02:00
parent bad24445a7
commit 55f7964fbc

View file

@ -50,6 +50,7 @@ function PauseScreen:setMenu()
self.scene.menusystem.menus["character"].isLocked = true
self.scene.menusystem:switchMenu(self.menuSelected)
self.scene.menusystem.menus["main"].isVisible = true
if (self.widgetSelected ~= nil) then
self.scene.menusystem.menus[self.menuSelected].widget.selected = self.widgetSelected
end