diff options
author | Thierry Crozat | 2017-09-08 21:16:00 +0100 |
---|---|---|
committer | Thierry Crozat | 2017-09-08 21:21:53 +0100 |
commit | d98d4bc25d750c1e27d21920fb5214cdbb71a961 (patch) | |
tree | 9955505d434cab44f55a8ac5f868ef7efc89321e | |
parent | aceff5852e7f769773f5932c46201ab2c3299a9c (diff) | |
download | scummvm-rg350-d98d4bc25d750c1e27d21920fb5214cdbb71a961.tar.gz scummvm-rg350-d98d4bc25d750c1e27d21920fb5214cdbb71a961.tar.bz2 scummvm-rg350-d98d4bc25d750c1e27d21920fb5214cdbb71a961.zip |
UPDATES: Fix crash when compiling with updates enabled but without an UpdateManager
This can happen when Sparkle was not found during configure which results
in USE_UPDATES being defined but USE_SPARKLE not being defined.
-rw-r--r-- | base/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/base/main.cpp b/base/main.cpp index c52888a827..4251c2c678 100644 --- a/base/main.cpp +++ b/base/main.cpp @@ -484,7 +484,7 @@ extern "C" int scummvm_main(int argc, const char * const argv[]) { setupKeymapper(system); #ifdef USE_UPDATES - if (!ConfMan.hasKey("updates_check")) { + if (!ConfMan.hasKey("updates_check") && g_system->getUpdateManager()) { GUI::UpdatesDialog dlg; dlg.runModal(); } |