aboutsummaryrefslogtreecommitdiff
path: root/builtin/mainmenu
diff options
context:
space:
mode:
authorKodexky <kodexky@gmail.com>2014-11-24 02:31:30 -0430
committerCraig Robbins <kde.psych@gmail.com>2014-11-26 18:11:08 +1000
commit9aaf67ebe0d6b05294695df6b0c8031f26b9a673 (patch)
tree96fb902c9e44b62833bb797065fc6f0d46072c23 /builtin/mainmenu
parent1c9f05d792562374046e74ad3eb75988d529b15c (diff)
downloadminetest-9aaf67ebe0d6b05294695df6b0c8031f26b9a673.tar.gz
minetest-9aaf67ebe0d6b05294695df6b0c8031f26b9a673.tar.bz2
minetest-9aaf67ebe0d6b05294695df6b0c8031f26b9a673.zip
Fix Android main menu crash, and user data directory check.
Signed-off-by: Craig Robbins <kde.psych@gmail.com>
Diffstat (limited to 'builtin/mainmenu')
-rw-r--r--builtin/mainmenu/init.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/builtin/mainmenu/init.lua b/builtin/mainmenu/init.lua
index 6ad2aa88a..e58208336 100644
--- a/builtin/mainmenu/init.lua
+++ b/builtin/mainmenu/init.lua
@@ -97,7 +97,7 @@ local function init_globals()
local found_singleplayerworld = false
- for world in pairs(world_list) do
+ for i,world in pairs(world_list) do
if world.name == "singleplayerworld" then
found_singleplayerworld = true
gamedata.worldindex = i
@@ -110,10 +110,10 @@ local function init_globals()
local world_list = core.get_worlds()
- for world in pairs(world_list) do
+ for i,world in pairs(world_list) do
if world.name == "singleplayerworld" then
gamedata.worldindex = i
- return
+ break
end
end
end