someone forgot a ! in world.cpp...
authorMathnerd314 <man.is.allan@gmail.com>
Wed, 3 Mar 2010 06:50:54 +0000 (06:50 +0000)
committerMathnerd314 <man.is.allan@gmail.com>
Wed, 3 Mar 2010 06:50:54 +0000 (06:50 +0000)
SVN-Revision: 6526

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();