aboutsummaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorsapier <Sapier at GMX dot net>2014-06-19 22:03:49 +0200
committersapier <Sapier at GMX dot net>2014-06-19 22:03:49 +0200
commit1c7cc2665bfacbee8d0fa3a00bca640f02620892 (patch)
tree5e3c292523fdb72c10205d39f22585f5edb15bea /builtin
parent8af44f81637938db7e4651d2ef8a294cf43b1072 (diff)
downloadminetest-1c7cc2665bfacbee8d0fa3a00bca640f02620892.tar.gz
minetest-1c7cc2665bfacbee8d0fa3a00bca640f02620892.tar.bz2
minetest-1c7cc2665bfacbee8d0fa3a00bca640f02620892.zip
Fix broken serverdescription in multiplayer tab
Diffstat (limited to 'builtin')
-rw-r--r--builtin/mainmenu/tab_multiplayer.lua7
1 files changed, 4 insertions, 3 deletions
diff --git a/builtin/mainmenu/tab_multiplayer.lua b/builtin/mainmenu/tab_multiplayer.lua
index e8aad42c3..d2d87274e 100644
--- a/builtin/mainmenu/tab_multiplayer.lua
+++ b/builtin/mainmenu/tab_multiplayer.lua
@@ -40,10 +40,11 @@ local function get_formspec(tabview, name, tabdata)
"pwdfield[9.3,4.5;2.5,0.5;te_pwd;]" ..
"textarea[9.3,0.25;2.5,2.75;;"
- if menudata.fav_selected ~= nil and
- menudata.favorites[menu.fav_selected].description ~= nil then
+ if tabdata.fav_selected ~= nil and
+ menudata.favorites[tabdata.fav_selected] ~= nil and
+ menudata.favorites[tabdata.fav_selected].description ~= nil then
retval = retval ..
- core.formspec_escape(menu.favorites[menu.fav_selected].description,true)
+ core.formspec_escape(menudata.favorites[tabdata.fav_selected].description,true)
end
retval = retval ..