mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-15 01:24:45 +02:00
Prefer local mod data, unless repository has newer mod
This commit is contained in:
@ -120,8 +120,7 @@ const JsonNode & ModDescription::getLocalizedValue(const std::string & keyName)
|
|||||||
|
|
||||||
const JsonNode & ModDescription::getValue(const std::string & keyName) const
|
const JsonNode & ModDescription::getValue(const std::string & keyName) const
|
||||||
{
|
{
|
||||||
const JsonNode & localValue = getLocalValue(keyName);
|
if (!isInstalled() || isUpdateAvailable())
|
||||||
if (localValue.isNull())
|
|
||||||
return getRepositoryValue(keyName);
|
return getRepositoryValue(keyName);
|
||||||
else
|
else
|
||||||
return getLocalValue(keyName);
|
return getLocalValue(keyName);
|
||||||
|
Reference in New Issue
Block a user