aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/lure/detection.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/engines/lure/detection.cpp b/engines/lure/detection.cpp
index 4d03148e31..ced0be0cfb 100644
--- a/engines/lure/detection.cpp
+++ b/engines/lure/detection.cpp
@@ -271,11 +271,8 @@ SaveStateList LureMetaEngine::listSaves(const char *target) const {
int LureMetaEngine::getMaximumSaveSlot() const { return 999; }
void LureMetaEngine::removeSaveState(const char *target, int slot) const {
- char extension[6];
- snprintf(extension, sizeof(extension), ".%03d", slot);
-
Common::String filename = target;
- filename += extension;
+ filename += Common::String::format(".%03d", slot);
g_system->getSavefileManager()->removeSavefile(filename);
}