mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-22 22:13:35 +02:00
Fix crash on attempt to enable 0 mods, for example after update
This commit is contained in:
parent
cdc1a9ea68
commit
00513c8720
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user