Fix warning format arguments. (Passing a Common::String ins't that much of a good idea)

svn-id: r47743
This commit is contained in:
Johannes Schickel 2010-01-31 10:02:38 +00:00
parent f59f03967b
commit 044ddf02a0

View file

@ -507,12 +507,12 @@ Common::Error SciEngine::saveGameState(int slot, const char *desc) {
Common::OutSaveFile *out = saveFileMan->openForSaving(fileName);
const char *version = "";
if (!out) {
warning("Opening savegame \"%s\" for writing failed", fileName);
warning("Opening savegame \"%s\" for writing failed", fileName.c_str());
return Common::kWritingFailed;
}
if (gamestate_save(_gamestate, out, desc, version)) {
warning("Saving the game state to '%s' failed", fileName);
warning("Saving the game state to '%s' failed", fileName.c_str());
return Common::kWritingFailed;
} else {
out->finalize();