1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-10 22:31:40 +02:00

Try to fix strange crash on mod install

This commit is contained in:
Ivan Savenko
2025-01-18 21:29:55 +00:00
parent 83155c2755
commit 711bbc684f

View File

@@ -148,6 +148,9 @@ bool ModStateController::canUninstallMod(QString modname)
bool ModStateController::canEnableMod(QString modname)
{
if (!modList->isModExists(modname))
return false;
auto mod = modList->getMod(modname);
if(modList->isModEnabled(modname))