Fixed: bad condition to verify parent id

--HG--
branch : menu_navi
hg/feature/menu-navi
Inky 5 years ago
parent 90e508032c
commit 331b0d8718

@ -4614,8 +4614,10 @@ class CHandlerCharselNaviGetKeys : public IActionHandler
{
virtual void execute (CCtrlBase *pCaller, const string &Params)
{
const std::string ui = pCaller->getParent()->getId();
if (ui != "ui:outgame")
if (!pCaller->getParent())
return;
if (pCaller->getParent()->getId() != "ui:outgame")
return;
if (Params.empty())

Loading…
Cancel
Save