diff options
author | eriktorbjorn | 2011-07-18 10:31:13 +0200 |
---|---|---|
committer | eriktorbjorn | 2011-07-18 10:31:13 +0200 |
commit | c378aadc3f8b438fcb081945681dd2a370f617dc (patch) | |
tree | 460b28983fc8931193ceb3928df443a6d98ab4a2 | |
parent | 8b1ff572bf0e2b4ef3bee7521d18add4491590a0 (diff) | |
download | scummvm-rg350-c378aadc3f8b438fcb081945681dd2a370f617dc.tar.gz scummvm-rg350-c378aadc3f8b438fcb081945681dd2a370f617dc.tar.bz2 scummvm-rg350-c378aadc3f8b438fcb081945681dd2a370f617dc.zip |
DREAMWEB: Fix Valgrind warning
-rw-r--r-- | engines/dreamweb/dreamweb.cpp | 8 |
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(); |