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) virtual void execute (CCtrlBase *pCaller, const string &Params)
{ {
const std::string ui = pCaller->getParent()->getId(); if (!pCaller->getParent())
if (ui != "ui:outgame") return;
if (pCaller->getParent()->getId() != "ui:outgame")
return; return;
if (Params.empty()) if (Params.empty())

Loading…
Cancel
Save