fix: work around a crash in debug mode

This commit is contained in:
Kazhnuz 2021-04-05 21:10:18 +02:00
parent 9c4efa3512
commit 7b97b1d82a

View file

@ -133,7 +133,7 @@ function DebugMenu:addSubMenu(submenu, parent, name, panel, panelArgument)
local parent = parent or "BaseMenu"
self.menusystem.menus[parent]:addSubMenu(submenu, name)
if (panel ~= nil) then
self.menusystem.menus[submenu]:setPanel(panel, panelArgument)
--self.menusystem.menus[submenu]:setPanel(panel, panelArgument)
end
end