From 6dc127f4eb500398ffd81edcb24d45353b0ff4cf Mon Sep 17 00:00:00 2001 From: Alex Orlenko Date: Mon, 14 Feb 2022 18:41:18 +0000 Subject: Refactor ffi module Initial Luau support work --- src/thread.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/thread.rs') diff --git a/src/thread.rs b/src/thread.rs index e805562..f4445a0 100644 --- a/src/thread.rs +++ b/src/thread.rs @@ -192,7 +192,7 @@ impl<'lua> Thread<'lua> { lua.push_ref(&self.0); let thread_state = ffi::lua_tothread(lua.state, -1); - let ret = ffi::lua_resetthread(lua.state, thread_state); + let ret = ffi::lua_resetthreadx(lua.state, thread_state); if ret != ffi::LUA_OK { return Err(pop_error(thread_state, ret)); } -- cgit v1.2.3