aboutsummaryrefslogtreecommitdiff
path: root/src/thread.c
diff options
context:
space:
mode:
authorame <[email protected]>2026-06-29 05:48:58 -0500
committerame <[email protected]>2026-06-29 05:48:58 -0500
commit727d3541a122795b405208242e6fdf7f8b5add07 (patch)
treedb049f349f669d37c6bf7d7feea18481a4f8b2d9 /src/thread.c
parent4ecdd3c18ccc5d3bcaa82ed720bf28443aa0ca9d (diff)
:detatch fix and math.random
Diffstat (limited to 'src/thread.c')
-rw-r--r--src/thread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/thread.c b/src/thread.c
index cd2eb5f..f34f314 100644
--- a/src/thread.c
+++ b/src/thread.c
@@ -213,7 +213,7 @@ int _thread_detach(lua_State* L){
lua_pushstring(L, "_");
lua_gettable(L, 1);
struct thread_info* info = lua_touserdata(L, -1);
- lua_getmetatable(L, -1);
+ lua_getmetatable(L, 1);
int idx = lua_gettop(L);
luaI_tsetnil(L, idx, "__gc");