allow setting/getting nodes in g_configs

This commit is contained in:
Eduardo Bart
2012-02-01 21:37:40 -02:00
parent 289efe34cf
commit 98ef0e4574
6 changed files with 39 additions and 17 deletions

View File

@@ -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);
}