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