mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-08 22:26:51 +02:00
Fix crash on attempt to enable 0 mods, for example after update
This commit is contained in:
@@ -932,7 +932,8 @@ void CModListView::installMods(QStringList archives)
|
||||
manager->installMod(modNames[i], archives[i]);
|
||||
}
|
||||
|
||||
manager->enableMods(modsToEnable);
|
||||
if (!modsToEnable.empty())
|
||||
manager->enableMods(modsToEnable);
|
||||
|
||||
checkManagerErrors();
|
||||
|
||||
|
Reference in New Issue
Block a user