aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/sludge/builtin.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/sludge/builtin.cpp b/engines/sludge/builtin.cpp
index 123841c11f..225c2f1a05 100644
--- a/engines/sludge/builtin.cpp
+++ b/engines/sludge/builtin.cpp
@@ -20,6 +20,8 @@
*
*/
+#include "common/savefile.h"
+
#include "sludge/allfiles.h"
#include "sludge/sludger.h"
#include "sludge/builtin.h"
@@ -356,6 +358,9 @@ builtIn(loadGame) {
Common::File fd;
if (fd.open(loadNow)) {
fd.close();
+ Common::InSaveFile *fp = g_system->getSavefileManager()->openForLoading(loadNow);
+ if (fp) {
+ delete fp;
return BR_KEEP_AND_PAUSE;
}
delete []loadNow;