mirror of
https://github.com/edubart/otclient.git
synced 2025-10-17 13:03:27 +02:00
More debug prints and avoid null pointer.
This commit is contained in:
@@ -447,9 +447,9 @@ UIWidgetPtr UIManager::createWidgetFromOTML(const OTMLNodePtr& widgetNode, const
|
||||
if(parent)
|
||||
parent->addChild(widget);
|
||||
|
||||
widget->callLuaField("onCreate");
|
||||
|
||||
if(widget) {
|
||||
widget->callLuaField("onCreate");
|
||||
|
||||
widget->setStyleFromNode(styleNode);
|
||||
|
||||
for(const OTMLNodePtr& childNode : styleNode->children()) {
|
||||
|
Reference in New Issue
Block a user