Commit 9aaf67e authored and committed Nov 26, 2014
1 parent 1c9f05d commit 9aaf67e Copy full SHA for 9aaf67e
File tree 2 files changed +5
-3
lines changed
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ local function init_globals()
97
97
98
98
local found_singleplayerworld = false
99
99
100
- for world in pairs (world_list ) do
100
+ for i , world in pairs (world_list ) do
101
101
if world .name == " singleplayerworld" then
102
102
found_singleplayerworld = true
103
103
gamedata .worldindex = i
@@ -110,10 +110,10 @@ local function init_globals()
110
110
111
111
local world_list = core .get_worlds ()
112
112
113
- for world in pairs (world_list ) do
113
+ for i , world in pairs (world_list ) do
114
114
if world .name == " singleplayerworld" then
115
115
gamedata .worldindex = i
116
- return
116
+ break
117
117
end
118
118
end
119
119
end
Original file line number Diff line number Diff line change @@ -1071,6 +1071,8 @@ static bool create_userdata_path()
1071
1071
porting::setExternalStorageDir (porting::jnienv);
1072
1072
if (!fs::PathExists (porting::path_user)) {
1073
1073
success = fs::CreateDir (porting::path_user);
1074
+ } else {
1075
+ success = true ;
1074
1076
}
1075
1077
porting::copyAssets ();
1076
1078
#else
You can’t perform that action at this time.
0 commit comments