aboutsummaryrefslogtreecommitdiff
path: root/src/lua/thread/luaopen_Thread.cpp
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2018-08-15 18:27:30 +0800
committerchai <chaifix@163.com>2018-08-15 18:27:30 +0800
commitbe9b27dbf550093b555ab3087c11b38c89ab9fd0 (patch)
treeddd96bb71b3ad3a32ae844a38bb95525bd0b0666 /src/lua/thread/luaopen_Thread.cpp
parentac9079ff1449e2638cbf7339edcc6e4b186e5eaa (diff)
*update
Diffstat (limited to 'src/lua/thread/luaopen_Thread.cpp')
-rw-r--r--src/lua/thread/luaopen_Thread.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua/thread/luaopen_Thread.cpp b/src/lua/thread/luaopen_Thread.cpp
index b6fb33b..30eb343 100644
--- a/src/lua/thread/luaopen_Thread.cpp
+++ b/src/lua/thread/luaopen_Thread.cpp
@@ -172,7 +172,7 @@ namespace lua
static int l_remove(lua_State* L)
{
Thread* t = checkThread(L);
- int slot = luax_checkinteger(L, 1);
+ int slot = luax_checkinteger(L, 2);
t->remove(slot);
return 0;
}