Experiment

This commit is contained in:
Mm2PL 2023-02-11 12:57:22 +01:00
parent 6b476f2826
commit d5d4335587
No known key found for this signature in database
GPG key ID: 94AC9B80EFA15ED9

View file

@ -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;
}