mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
Experiment
This commit is contained in:
parent
6b476f2826
commit
d5d4335587
1 changed files with 5 additions and 1 deletions
|
@ -146,7 +146,11 @@ bool pop(lua_State *L, T *out, StackIdx idx = -1)
|
|||
auto ok = peek(L, out, idx);
|
||||
if (ok)
|
||||
{
|
||||
lua_pop(L, 1);
|
||||
if (idx < 0)
|
||||
{
|
||||
idx = lua_gettop(L) + idx;
|
||||
}
|
||||
lua_remove(L, idx);
|
||||
}
|
||||
return ok;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue