mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
Fucking off-by-one error
This commit is contained in:
parent
f3ee061f7f
commit
9e92a795c3
1 changed files with 1 additions and 1 deletions
|
@ -148,7 +148,7 @@ bool pop(lua_State *L, T *out, StackIdx idx = -1)
|
||||||
{
|
{
|
||||||
if (idx < 0)
|
if (idx < 0)
|
||||||
{
|
{
|
||||||
idx = lua_gettop(L) + idx;
|
idx = lua_gettop(L) + idx + 1;
|
||||||
}
|
}
|
||||||
lua_remove(L, idx);
|
lua_remove(L, idx);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue