1
0
Fork 0

More debug prints and avoid null pointer.

Esse commit está contido em:
BenDol 2014-07-14 01:56:17 +12:00
commit 9e0ddb08e3
2 arquivos alterados com 2 adições e 3 exclusões

Ver arquivo

@ -257,7 +257,6 @@ end
function UIMinimap:onStyleApply(styleName, styleNode)
for name,value in pairs(styleNode) do
if name == 'autowalk' then
print(value)
self.autowalk = value
end
end

Ver arquivo

@ -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()) {