1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-29 23:07:48 +02:00

Do not write mods that do not affect gameplay to saved games

This commit is contained in:
Ivan Savenko
2024-04-18 19:13:02 +03:00
parent ecc88fabc1
commit 6af2609e0f
2 changed files with 9 additions and 4 deletions

View File

@@ -16,7 +16,7 @@ VCMI_LIB_NAMESPACE_BEGIN
class ActiveModsInSaveList
{
std::vector<TModID> getActiveMods();
std::vector<TModID> getActiveGameplayAffectingMods();
const ModVerificationInfo & getVerificationInfo(TModID mod);
/// Checks whether provided mod list is compatible with current VLC and throws on failure
@@ -26,7 +26,7 @@ public:
{
if(h.saving)
{
std::vector<TModID> activeMods = getActiveMods();
std::vector<TModID> activeMods = getActiveGameplayAffectingMods();
h & activeMods;
for(const auto & m : activeMods)
h & getVerificationInfo(m);