mirror of
https://github.com/edubart/otclient.git
synced 2025-10-19 05:53:26 +02:00
allow setting/getting nodes in g_configs
This commit is contained in:
@@ -264,7 +264,7 @@ bool luavalue_cast(int index, OTMLNodePtr& node)
|
||||
std::string cnodeName = g_lua.toString(-2);
|
||||
if(g_lua.isTable()) {
|
||||
OTMLNodePtr cnode;
|
||||
if(luavalue_cast(-1, node)) {
|
||||
if(luavalue_cast(-1, cnode)) {
|
||||
cnode->setTag(cnodeName);
|
||||
node->addChild(cnode);
|
||||
}
|
||||
|
Reference in New Issue
Block a user