Skip to content

Commit

Permalink
Fix gui/mod-manager
Browse files Browse the repository at this point in the history
it fails if mods folder does not exist
  • Loading branch information
warmist committed May 5, 2016
1 parent 208eb6f commit 88d1a79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/gui/mod-manager.lua
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ function manager:init(args)
local mods=self.mods
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)
end
for k,v in ipairs(mlist) do
Expand Down

0 comments on commit 88d1a79

Please sign in to comment.