From 66b24cc9ff7c852e5455cc6c2c024d51c37c0c2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A1niel=20Varga?= Date: Thu, 16 Jan 2014 22:16:43 +0100 Subject: 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. --- builtin/modmgr.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'builtin/modmgr.lua') 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 -- cgit v1.2.3