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.
This commit is contained in:
Thierry Crozat 2017-09-08 21:16:00 +01:00
parent aceff5852e
commit d98d4bc25d

View file

@ -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();
}