X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Flevel.cpp;h=ae81a34c3db8326dec2d410da6ae8082352cd4ed;hb=7ad6b7ed9d8d7c76ec7b70e4c27f47bd424b176e;hp=21ce9eb5316ce9d5aa51c190e4702d252824dc19;hpb=9599042661b468aae7bd34dca05441c0ebc93ad7;p=supertux.git diff --git a/src/level.cpp b/src/level.cpp index 21ce9eb53..ae81a34c3 100644 --- a/src/level.cpp +++ b/src/level.cpp @@ -130,7 +130,7 @@ Level::save(const std::string& filename) std::string filepath = "levels/" + filename; int last_slash = filepath.find_last_of('/'); FileSystem::fcreatedir(filepath.substr(0,last_slash).c_str()); - filepath = st_dir + "/" + filepath; + filepath = user_dir + "/" + filepath; ofstream file(filepath.c_str(), ios::out); lisp::Writer* writer = new lisp::Writer(file);