Fix 'Unknown map backend' error when using Configure menu right after creating world

This commit is contained in:
Sfan5 2013-09-09 19:21:07 +02:00
parent f1e4a671dc
commit d423a8fc20

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