Fix gui/mod-manager

it fails if mods folder does not exist
develop
Warmist 2016-05-05 13:47:29 +03:00
parent 208eb6f452
commit 88d1a79c0c
1 changed files with 1 additions and 1 deletions

@ -159,7 +159,7 @@ function manager:init(args)
local mods=self.mods local mods=self.mods
local mlist=dfhack.internal.getDir(mod_dir) local mlist=dfhack.internal.getDir(mod_dir)
if #mlist==0 then if mlist==nil or #mlist==0 then
qerror("Mod directory not found! Are you sure it is in:"..mod_dir) qerror("Mod directory not found! Are you sure it is in:"..mod_dir)
end end
for k,v in ipairs(mlist) do for k,v in ipairs(mlist) do