소스 검색

Thread:getKeys needs to return a 1-indexed table

Bart van Strien 14 년 전
부모
커밋
f9084c4625
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/modules/thread/wrap_Thread.cpp

+ 1 - 1
src/modules/thread/wrap_Thread.cpp

@@ -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++);