From d98d4bc25d750c1e27d21920fb5214cdbb71a961 Mon Sep 17 00:00:00 2001 From: Thierry Crozat Date: Fri, 8 Sep 2017 21:16:00 +0100 Subject: 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. --- base/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'base/main.cpp') 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(); } -- cgit v1.2.3