aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSfan5 <sfan5@live.de>2013-09-09 19:21:07 +0200
committerSfan5 <sfan5@live.de>2013-09-09 22:50:51 +0200
commitd423a8fc20a33ebf6c3f1c95e96b57dd18d19c29 (patch)
treed53ca0b337f2610bdc29c89f2810b242818f6c64
parentf1e4a671dc524430cae0dc66fd774858842a3067 (diff)
downloadminetest-d423a8fc20a33ebf6c3f1c95e96b57dd18d19c29.tar.gz
minetest-d423a8fc20a33ebf6c3f1c95e96b57dd18d19c29.tar.bz2
minetest-d423a8fc20a33ebf6c3f1c95e96b57dd18d19c29.zip
Fix 'Unknown map backend' error when using Configure menu right after creating world
-rw-r--r--src/subgame.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/subgame.cpp b/src/subgame.cpp
index f2602856f..95ae9ef98 100644
--- a/src/subgame.cpp
+++ b/src/subgame.cpp
@@ -242,7 +242,7 @@ bool initializeWorld(const std::string &path, const std::string &gameid)
infostream<<"Creating world.mt ("<<worldmt_path<<")"<<std::endl;
fs::CreateAllDirs(path);
std::ostringstream ss(std::ios_base::binary);
- ss<<"gameid = "<<gameid<<"\nbackend = sqlite3";
+ ss<<"gameid = "<<gameid<<"\nbackend = sqlite3\n";
fs::safeWriteToFile(worldmt_path, ss.str());
}
return true;