Apparently C++ doesn't automatically convert from std::string to const char*...
authormathnerd314 <mathnerd314@837edb03-e0f3-0310-88ca-d4d4e8b29345>
Wed, 3 Mar 2010 07:07:41 +0000 (07:07 +0000)
committermathnerd314 <mathnerd314@837edb03-e0f3-0310-88ca-d4d4e8b29345>
Wed, 3 Mar 2010 07:07:41 +0000 (07:07 +0000)
git-svn-id: http://supertux.lethargik.org/svn/supertux/trunk/supertux@6528 837edb03-e0f3-0310-88ca-d4d4e8b29345

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