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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user