aboutsummaryrefslogtreecommitdiff
path: root/src/lua/thread
diff options
context:
space:
mode:
Diffstat (limited to 'src/lua/thread')
-rw-r--r--src/lua/thread/luaopen_Thread.cpp2
-rw-r--r--src/lua/thread/luaopen_thread.cpp2
2 files changed, 2 insertions, 2 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;
}
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;
}