1
0
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:
Ivan Savenko 2024-12-04 11:16:05 +00:00
parent cdc1a9ea68
commit 00513c8720

View File

@ -932,6 +932,7 @@ void CModListView::installMods(QStringList archives)
manager->installMod(modNames[i], archives[i]);
}
if (!modsToEnable.empty())
manager->enableMods(modsToEnable);
checkManagerErrors();