autoload.lua: fix autoloading of files to prepend

This used the wrong index variable, and thus didn't work.
This commit is contained in:
wm4 2014-05-25 20:17:03 +02:00
parent 2309bb91cc
commit 0e1ab2a8da
1 changed files with 1 additions and 1 deletions

View File

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