aboutsummaryrefslogtreecommitdiff
path: root/engines/dialogs.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/dialogs.cpp')
-rw-r--r--engines/dialogs.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/dialogs.cpp b/engines/dialogs.cpp
index f9b1c1e8b5..3fd8671e55 100644
--- a/engines/dialogs.cpp
+++ b/engines/dialogs.cpp
@@ -229,9 +229,9 @@ void MainMenuDialog::save() {
// If the user was lazy and entered no save name, come up with a default name.
Common::String buf;
buf = Common::String::format("Save %d", slot + 1);
- _engine->saveGameState(slot, buf.c_str());
+ _engine->saveGameState(slot, buf);
} else {
- _engine->saveGameState(slot, result.c_str());
+ _engine->saveGameState(slot, result);
}
close();