Fix warning format arguments. (Passing a Common::String ins't that much of a good idea)
svn-id: r47743
This commit is contained in:
parent
f59f03967b
commit
044ddf02a0
1 changed files with 2 additions and 2 deletions
|
@ -507,12 +507,12 @@ Common::Error SciEngine::saveGameState(int slot, const char *desc) {
|
||||||
Common::OutSaveFile *out = saveFileMan->openForSaving(fileName);
|
Common::OutSaveFile *out = saveFileMan->openForSaving(fileName);
|
||||||
const char *version = "";
|
const char *version = "";
|
||||||
if (!out) {
|
if (!out) {
|
||||||
warning("Opening savegame \"%s\" for writing failed", fileName);
|
warning("Opening savegame \"%s\" for writing failed", fileName.c_str());
|
||||||
return Common::kWritingFailed;
|
return Common::kWritingFailed;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (gamestate_save(_gamestate, out, desc, version)) {
|
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;
|
return Common::kWritingFailed;
|
||||||
} else {
|
} else {
|
||||||
out->finalize();
|
out->finalize();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue