From 626dcf17724c2aae028d1fbe0363e63501861376 Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 23 Oct 2014 15:11:49 +0200 Subject: lua: fix non-sense Let's actually test our code next time. --- player/lua.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- cgit v1.2.3