From 8be138931d8d14d5bb3c026cf839ce6412df92ef Mon Sep 17 00:00:00 2001 From: kaetemi Date: Sat, 24 Oct 2020 04:33:08 +0800 Subject: [PATCH] Fix pCB NULL --- ryzom/client/src/login.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ryzom/client/src/login.cpp b/ryzom/client/src/login.cpp index cb6117744..2da407ecb 100644 --- a/ryzom/client/src/login.cpp +++ b/ryzom/client/src/login.cpp @@ -1211,9 +1211,10 @@ void initShardDisplay() { CCtrlButton *pCB = dynamic_cast(CWidgetManager::getInstance()->getElementFromId(GROUP_LIST_SHARD ":s0:but")); if (pCB != NULL) + { pCB->setPushed(true); - CAHManager::getInstance()->runActionHandler (pCB->getActionOnLeftClick(), pCB, pCB->getParamsOnLeftClick()); - + CAHManager::getInstance()->runActionHandler(pCB->getActionOnLeftClick(), pCB, pCB->getParamsOnLeftClick()); + } } pList->invalidateCoords(); }