someone forgot a ! in world.cpp...
authormathnerd314 <mathnerd314@837edb03-e0f3-0310-88ca-d4d4e8b29345>
Wed, 3 Mar 2010 06:50:54 +0000 (06:50 +0000)
committermathnerd314 <mathnerd314@837edb03-e0f3-0310-88ca-d4d4e8b29345>
Wed, 3 Mar 2010 06:50:54 +0000 (06:50 +0000)
git-svn-id: http://supertux.lethargik.org/svn/supertux/trunk/supertux@6526 837edb03-e0f3-0310-88ca-d4d4e8b29345

src/supertux/world.cpp

index f136098..2df22f3 100644 (file)
@@ -65,7 +65,7 @@ World::set_savegame_filename(const std::string& filename)
   // make sure the savegame directory exists
   std::string dirname = FileSystem::dirname(filename);
   if(!PHYSFS_exists(dirname.c_str())) {
-    if(PHYSFS_mkdir(dirname.c_str())) {
+    if(!PHYSFS_mkdir(dirname.c_str())) {
       std::ostringstream msg;
       msg << "Couldn't create directory for savegames '"
           << dirname << "': " <<PHYSFS_getLastError();