lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Al least one error is in the table iteration:

       lua_pushnil(mpLuaState);  /* first key */
       while (lua_next(mpLuaState, -1))

-1 is not the stack location of the table; at -1 is the 'nil' value used as the key.

Jan