diff --git a/src/modules/thread/wrap_Thread.cpp b/src/modules/thread/wrap_Thread.cpp index d82c26665..93a11bf32 100644 --- a/src/modules/thread/wrap_Thread.cpp +++ b/src/modules/thread/wrap_Thread.cpp @@ -135,7 +135,7 @@ namespace thread std::vector keys = t->getKeys(); t->unlock(); lua_createtable(L, keys.size(), 0); - int i = 0; + int i = 1; for (std::vector::iterator it = keys.begin(); it != keys.end(); it++) { lua_pushnumber(L, i++);