소스 검색

Fixed http://bugs.vcmi.eu/view.php?id=2639

AlexVinS 8 년 전
부모
커밋
0b3c1c7185
2개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      lib/serializer/CSerializer.h
  2. 2 0
      lib/spells/CSpellHandler.h

+ 1 - 1
lib/serializer/CSerializer.h

@@ -14,7 +14,7 @@
 #include "../ConstTransitivePtr.h"
 #include "../ConstTransitivePtr.h"
 #include "../GameConstants.h"
 #include "../GameConstants.h"
 
 
-const ui32 SERIALIZATION_VERSION = 761;
+const ui32 SERIALIZATION_VERSION = 762;
 const ui32 MINIMAL_SERIALIZATION_VERSION = 753;
 const ui32 MINIMAL_SERIALIZATION_VERSION = 753;
 const std::string SAVEGAME_MAGIC = "VCMISVG";
 const std::string SAVEGAME_MAGIC = "VCMISVG";
 
 

+ 2 - 0
lib/spells/CSpellHandler.h

@@ -111,6 +111,8 @@ public:
 		template <typename Handler> void serialize(Handler & h, const int version)
 		template <typename Handler> void serialize(Handler & h, const int version)
 		{
 		{
 			h & projectile & hit & cast;
 			h & projectile & hit & cast;
+			if(version >= 762)
+				h & affect;
 		}
 		}
 
 
 		std::string selectProjectile(const double angle) const;
 		std::string selectProjectile(const double angle) const;