= {
“m_cCardValue”] = 7,
“m_cCardType”] = 0,
},
= {
“m_cCardValue”] = 5,
“m_cCardType”] = 0,
},
= {
“m_cCardValue”] = 8,
“m_cCardType”] = 1,
},
= {
“m_cCardValue”] = 5,
“m_cCardType”] = 1,
},
= {
“m_cCardValue”] = 11,
“m_cCardType”] = 2,
},
= {
“m_cCardValue”] = 9,
“m_cCardType”] = 2,
},
= {
“m_cCardValue”] = 5,
“m_cCardType”] = 2,
},
LUA ERROR: invalid key to ‘next’
上面是我的嵌套的table 从lua传到C++ 在
argc = lua_gettop(tolua_S)-1;
if (ok && argc == 1)
{
ValueMap arg0;
ok &= luaval_to_ccvaluemap(tolua_S, 2, &arg0);
}
的时候有问题。 3.2的崩溃 修改成最新引擎的代码就有问题 跟踪进去发现解析不对。。