We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0220db commit aaa6277Copy full SHA for aaa6277
VM/src/llltimers.cpp
@@ -75,10 +75,10 @@ static void lltimers_dtor(lua_State *L, void *data)
75
int luaSL_createtimermanager(lua_State *L)
76
{
77
// Validate LLEvents parameter on top of stack
78
- if (!lua_touserdatatagged(L, 1, UTAG_LLEVENTS))
79
- luaL_typeerror(L, 1, "LLEvents");
+ if (!lua_touserdatatagged(L, -1, UTAG_LLEVENTS))
+ luaL_typeerror(L, -1, "LLEvents");
80
81
- lua_checkstack(L, 3);
+ lua_checkstack(L, 5);
82
83
// Store LLEvents reference and remove from stack
84
int llevents_ref = lua_ref(L, 1);
0 commit comments