aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/wintermute/Base/BGame.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/wintermute/Base/BGame.cpp b/engines/wintermute/Base/BGame.cpp
index 32242a5313..054029ae35 100644
--- a/engines/wintermute/Base/BGame.cpp
+++ b/engines/wintermute/Base/BGame.cpp
@@ -3871,9 +3871,9 @@ bool CBGame::isSaveSlotUsed(int slot) {
bool CBGame::emptySaveSlot(int slot) {
char filename[MAX_PATH_LENGTH + 1];
getSaveSlotFilename(slot, filename);
-
- CBPlatform::deleteFile(filename);
-
+ CBPersistMgr *pm = new CBPersistMgr(this);
+ g_wintermute->getSaveFileMan()->removeSavefile(pm->getFilenameForSlot(slot));
+ delete pm;
return STATUS_OK;
}