Apparently C++ doesn't automatically convert from std::string to const char*...
authorMathnerd314 <man.is.allan@gmail.com>
Wed, 3 Mar 2010 07:07:41 +0000 (07:07 +0000)
committerMathnerd314 <man.is.allan@gmail.com>
Wed, 3 Mar 2010 07:07:41 +0000 (07:07 +0000)
SVN-Revision: 6528

src/supertux/world.cpp

index 60fe209..f821dd4 100644 (file)
@@ -197,7 +197,7 @@ World::load_state()
 {
   using namespace scripting;
 
-  if(PHYSFS_exists(savegame_filename)) {
+  if(PHYSFS_exists(savegame_filename.c_str())) {
     try {
       lisp::Parser parser;
       const lisp::Lisp* root = parser.parse(savegame_filename);