mirror of
https://github.com/edubart/otclient.git
synced 2026-01-18 03:16:22 +01: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