1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-24 08:32:34 +02:00

Add missing field to serialization

This commit is contained in:
Ivan Savenko 2024-11-16 16:23:02 +00:00
parent 227e403e88
commit 4ae81cbac0
2 changed files with 4 additions and 1 deletions

View File

@ -129,6 +129,8 @@ struct DLL_LINKAGE Reward final
h & removeObject;
h & manaPercentage;
h & movePercentage;
if (h.version >= Handler::Version::REWARDABLE_GUARDS)
h & guards;
h & heroExperience;
h & heroLevel;
h & manaDiff;

View File

@ -67,6 +67,7 @@ enum class ESerializationVersion : int32_t
REMOVE_OBJECT_TYPENAME, // 868 - remove typename from CGObjectInstance
REMOVE_VLC_POINTERS, // 869 removed remaining pointers to VLC entities
FOLDER_NAME_REWORK, // 870 - rework foldername
REWARDABLE_GUARDS, // 871 - fix missing serialization of guards in rewardable objects
CURRENT = FOLDER_NAME_REWORK
CURRENT = REWARDABLE_GUARDS
};