mirror of
https://github.com/edubart/otclient.git
synced 2025-10-19 14:03:26 +02:00
Fix error in OTML casting from Lua, may fix #198
This commit is contained in:
@@ -295,7 +295,7 @@ bool luavalue_cast(int index, OTMLNodePtr& node)
|
||||
OTMLNodePtr cnode;
|
||||
if(luavalue_cast(-1, cnode)) {
|
||||
if(cnodeName.empty())
|
||||
node->setUnique(false);
|
||||
cnode->setUnique(false);
|
||||
else
|
||||
cnode->setTag(cnodeName);
|
||||
node->addChild(cnode);
|
||||
|
Reference in New Issue
Block a user