aboutsummaryrefslogtreecommitdiff
path: root/engines/dreamweb
diff options
context:
space:
mode:
authoreriktorbjorn2011-07-18 10:31:13 +0200
committereriktorbjorn2011-07-18 10:31:13 +0200
commitc378aadc3f8b438fcb081945681dd2a370f617dc (patch)
tree460b28983fc8931193ceb3928df443a6d98ab4a2 /engines/dreamweb
parent8b1ff572bf0e2b4ef3bee7521d18add4491590a0 (diff)
downloadscummvm-rg350-c378aadc3f8b438fcb081945681dd2a370f617dc.tar.gz
scummvm-rg350-c378aadc3f8b438fcb081945681dd2a370f617dc.tar.bz2
scummvm-rg350-c378aadc3f8b438fcb081945681dd2a370f617dc.zip
DREAMWEB: Fix Valgrind warning
Diffstat (limited to 'engines/dreamweb')
-rw-r--r--engines/dreamweb/dreamweb.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/engines/dreamweb/dreamweb.cpp b/engines/dreamweb/dreamweb.cpp
index 85cb2c1983..719549cc7d 100644
--- a/engines/dreamweb/dreamweb.cpp
+++ b/engines/dreamweb/dreamweb.cpp
@@ -219,7 +219,13 @@ Common::Error DreamWebEngine::run() {
syncSoundSettings();
_console = new DreamWebConsole(this);
- _loadSavefile = Common::ConfigManager::instance().getInt("save_slot");
+ if (ConfMan.hasKey("save_slot")) {
+ _enableSavingOrLoading = true;
+ _loadSavefile = ConfMan.getInt("save_slot");
+ } else {
+ _enableSavingOrLoading = false;
+ _loadSavefile = -1;
+ }
getTimerManager()->installTimerProc(vSyncInterrupt, 1000000 / 70, this);
_context.__start();