1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-28 08:48:48 +02:00

Handle mods with "keepDisabled" propertly on client

This commit is contained in:
Ivan Savenko 2023-03-25 22:37:10 +02:00
parent 7fd0d0beb1
commit 7477e4a8cc

View File

@ -684,7 +684,7 @@ void CModInfo::loadLocalData(const JsonNode & data)
{
bool validated = false;
implicitlyEnabled = true;
explicitlyEnabled = true;
explicitlyEnabled = !config["keepDisabled"].Bool();
checksum = 0;
if (data.getType() == JsonNode::JsonType::DATA_BOOL)
{