From: mathnerd314 Date: Wed, 3 Mar 2010 07:07:41 +0000 (+0000) Subject: Apparently C++ doesn't automatically convert from std::string to const char*... X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=0340f8f7b9d2b450e1fb3948fe81aa84ca78429b;p=supertux.git Apparently C++ doesn't automatically convert from std::string to const char*... git-svn-id: http://supertux.lethargik.org/svn/supertux/trunk/supertux@6528 837edb03-e0f3-0310-88ca-d4d4e8b29345 --- diff --git a/src/supertux/world.cpp b/src/supertux/world.cpp index 60fe2092d..f821dd4a4 100644 --- a/src/supertux/world.cpp +++ b/src/supertux/world.cpp @@ -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);