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=f6bbc65579961b0b76ba42014da4c4a75d467285;p=supertux.git Apparently C++ doesn't automatically convert from std::string to const char*... SVN-Revision: 6528 --- 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);