Fix pCB NULL

develop
kaetemi 4 years ago
parent 771248fcf4
commit 8be138931d

@ -1211,9 +1211,10 @@ void initShardDisplay()
{ {
CCtrlButton *pCB = dynamic_cast<CCtrlButton*>(CWidgetManager::getInstance()->getElementFromId(GROUP_LIST_SHARD ":s0:but")); CCtrlButton *pCB = dynamic_cast<CCtrlButton*>(CWidgetManager::getInstance()->getElementFromId(GROUP_LIST_SHARD ":s0:but"));
if (pCB != NULL) if (pCB != NULL)
{
pCB->setPushed(true); pCB->setPushed(true);
CAHManager::getInstance()->runActionHandler (pCB->getActionOnLeftClick(), pCB, pCB->getParamsOnLeftClick()); CAHManager::getInstance()->runActionHandler(pCB->getActionOnLeftClick(), pCB, pCB->getParamsOnLeftClick());
}
} }
pList->invalidateCoords(); pList->invalidateCoords();
} }

Loading…
Cancel
Save