1
0
Fork 0

cLuaState: Stack traces don't include ghost 0-th element.

This commit is contained in:
madmaxoft 2014-02-10 22:44:56 +01:00
parent 5aa1123f70
commit 589a4839df
1 changed files with 1 additions and 1 deletions

View File

@ -1206,7 +1206,7 @@ void cLuaState::LogStack(const char * a_Header)
void cLuaState::LogStack(lua_State * a_LuaState, const char * a_Header)
{
LOGD((a_Header != NULL) ? a_Header : "Lua C API Stack contents:");
for (int i = lua_gettop(a_LuaState); i >= 0; i--)
for (int i = lua_gettop(a_LuaState); i > 0; i--)
{
AString Value;
int Type = lua_type(a_LuaState, i);