Fix 'Unknown map backend' error when using Configure menu right after creating world
authorSfan5 <sfan5@live.de>
Mon, 9 Sep 2013 17:21:07 +0000 (19:21 +0200)
committerSfan5 <sfan5@live.de>
Mon, 9 Sep 2013 20:50:51 +0000 (22:50 +0200)
src/subgame.cpp

index f2602856f99603fc8bd58acdf94f21a151752d48..95ae9ef9856ea9bc651c6a7842dac012dcb9df33 100644 (file)
@@ -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;