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:
@@ -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))
|
||||
|
Reference in New Issue
Block a user