From f9084c4625ea955fe0cd30ebdb269c14ed9254f1 Mon Sep 17 00:00:00 2001 From: Bart van Strien Date: Wed, 31 Aug 2011 12:28:56 +0200 Subject: [PATCH] Thread:getKeys needs to return a 1-indexed table --- src/modules/thread/wrap_Thread.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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++);