diff options
author | Dániel Varga <vargad88@gmail.com> | 2014-01-16 22:16:43 +0100 |
---|---|---|
committer | BlockMen <nmuelll@web.de> | 2014-01-18 10:41:43 +0100 |
commit | 66b24cc9ff7c852e5455cc6c2c024d51c37c0c2a (patch) | |
tree | bffec09aefe0d93330d209d0159daaeaedada493 /builtin/modmgr.lua | |
parent | b11b48ec07214686bb351e9ec4857a107c26665b (diff) | |
download | minetest-66b24cc9ff7c852e5455cc6c2c024d51c37c0c2a.tar.gz minetest-66b24cc9ff7c852e5455cc6c2c024d51c37c0c2a.tar.bz2 minetest-66b24cc9ff7c852e5455cc6c2c024d51c37c0c2a.zip |
Fixed mainmenu lua errors because of changes in get_textlist_index
Fixed lua error when none of the worlds or servers selected are and connect,
delete or configure buttons used.
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 |