diff options
Diffstat (limited to 'builtin/modmgr.lua')
-rw-r--r-- | builtin/modmgr.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/modmgr.lua b/builtin/modmgr.lua index f530ccc4a..11434ab3c 100644 --- a/builtin/modmgr.lua +++ b/builtin/modmgr.lua @@ -1067,7 +1067,7 @@ function modmgr.get_global_mod(idx) return nil end - if idx < 1 or idx > filterlist.size(modmgr.global_mods) then + if idx == nil or idx < 1 or idx > filterlist.size(modmgr.global_mods) then return nil end |