Thread:getKeys needs to return a 1-indexed table

This commit is contained in:
Bart van Strien
2011-08-31 12:28:56 +02:00
parent cc7b6431eb
commit f9084c4625
+1 -1
View File
@@ -135,7 +135,7 @@ namespace thread
std::vector<std::string> keys = t->getKeys();
t->unlock();
lua_createtable(L, keys.size(), 0);
int i = 0;
int i = 1;
for (std::vector<std::string>::iterator it = keys.begin(); it != keys.end(); it++)
{
lua_pushnumber(L, i++);