Fix Android main menu crash, and user data directory check.

Signed-off-by: Craig Robbins <kde.psych@gmail.com>
This commit is contained in:
Kodexky 2014-11-24 02:31:30 -04:30 committed by Nils Dagsson Moskopp
parent 694e0d0781
commit 0a6a8ab23b
Signed by: erle
GPG Key ID: A3BC671C35191080
1 changed files with 3 additions and 3 deletions

View File

@ -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