aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/toltecs/saveload.cpp4
-rw-r--r--engines/toltecs/toltecs.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/engines/toltecs/saveload.cpp b/engines/toltecs/saveload.cpp
index aa045378f2..9d88b9dce6 100644
--- a/engines/toltecs/saveload.cpp
+++ b/engines/toltecs/saveload.cpp
@@ -184,9 +184,9 @@ Common::Error ToltecsEngine::loadGameState(int slot) {
return Common::kNoError;
}
-Common::Error ToltecsEngine::saveGameState(int slot, const char *description) {
+Common::Error ToltecsEngine::saveGameState(int slot, const Common::String &description) {
const char *fileName = getSavegameFilename(slot);
- savegame(fileName, description);
+ savegame(fileName, description.c_str());
return Common::kNoError;
}
diff --git a/engines/toltecs/toltecs.h b/engines/toltecs/toltecs.h
index ce87d1901e..377ef1c2d4 100644
--- a/engines/toltecs/toltecs.h
+++ b/engines/toltecs/toltecs.h
@@ -195,7 +195,7 @@ public:
bool canLoadGameStateCurrently() { return _isSaveAllowed; }
bool canSaveGameStateCurrently() { return _isSaveAllowed; }
Common::Error loadGameState(int slot);
- Common::Error saveGameState(int slot, const char *description);
+ Common::Error saveGameState(int slot, const Common::String &description);
void savegame(const char *filename, const char *description);
void loadgame(const char *filename);