From 0e1ab2a8da8dee6caf1ce0e6604b9a1ba5f3f7fd Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 25 May 2014 20:17:03 +0200 Subject: autoload.lua: fix autoloading of files to prepend This used the wrong index variable, and thus didn't work. --- TOOLS/lua/autoload.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TOOLS/lua/autoload.lua b/TOOLS/lua/autoload.lua index 37ceb97fdf..1fe1aec49c 100644 --- a/TOOLS/lua/autoload.lua +++ b/TOOLS/lua/autoload.lua @@ -52,7 +52,7 @@ function find_and_add_entries() end end if dir == -1 then - if current == 1 then -- never add additional entries in the middle + if pl_current == 1 then -- never add additional entries in the middle mp.msg.info("Prepending " .. file) table.insert(append[-1], 1, file) end -- cgit v1.2.3