1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-15 00:05:02 +02:00

Fix save compatibility with 1.4 that was broken by artifact costumes

This commit is contained in:
Ivan Savenko
2024-04-28 20:54:33 +03:00
parent be54836401
commit 151075f088
3 changed files with 6 additions and 4 deletions

View File

@ -91,9 +91,9 @@ ModListVerificationStatus ModVerificationInfo::verifyListAgainstLocalMods(const
auto & localModInfo = VLC->modh->getModInfo(remoteModId).getVerificationInfo();
modAffectsGameplay |= VLC->modh->getModInfo(remoteModId).checkModGameplayAffecting();
assert(modAffectsGameplay); // such mods should not be in the list to begin with
// skip it. Such mods should only be present in old saves or if mod changed and no longer affects gameplay
if (!modAffectsGameplay)
continue; // skip it
continue;
if (!vstd::contains(VLC->modh->getActiveMods(), remoteModId))
{