summaryrefslogtreecommitdiffstats
path: root/player
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-10-23 15:11:49 +0200
committerwm4 <wm4@nowhere>2014-10-23 15:13:05 +0200
commit626dcf17724c2aae028d1fbe0363e63501861376 (patch)
tree93ed6c80042a1bfc4fd739350b2d22eab20b5d42 /player
parent7cf18a8db9f76cdf614448a657450db3a49be47a (diff)
downloadmpv-626dcf17724c2aae028d1fbe0363e63501861376.tar.bz2
mpv-626dcf17724c2aae028d1fbe0363e63501861376.tar.xz
lua: fix non-sense
Let's actually test our code next time.
Diffstat (limited to 'player')
-rw-r--r--player/lua.c2
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);
}