Skip to content

Commit f46a08d

Browse files
committed
Fix incorrect ref in luaSL_createtimermanager()
1 parent 417e33d commit f46a08d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

VM/src/llltimers.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ int luaSL_createtimermanager(lua_State *L)
8282
lua_checkstack(L, 5);
8383

8484
// Store LLEvents reference and remove from stack
85-
int llevents_ref = lua_ref(L, 1);
85+
int llevents_ref = lua_ref(L, -1);
8686
lua_pop(L, 1);
8787

8888
auto *lltimers = (lua_LLTimers *)lua_newuserdatataggedwithmetatable(L, sizeof(lua_LLTimers), UTAG_LLTIMERS);

0 commit comments

Comments
 (0)