diff options
-rw-r--r-- | player/lua.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/player/lua.c b/player/lua.c index d147d2c687..791a7d4fea 100644 --- a/player/lua.c +++ b/player/lua.c @@ -99,7 +99,7 @@ static int mp_cpcall (lua_State *L, lua_CFunction func, void *ud) // pushed to the stack. static void mp_lua_optarg(lua_State *L, int arg) { - while (arg < lua_gettop(L)) + while (arg > lua_gettop(L)) lua_pushnil(L); } |