Browse Source

Fix assertion

Ivan Savenko 2 năm trước cách đây
mục cha
commit
2f9073e13a
2 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 1 1
      lib/mapping/CCampaignHandler.h
  2. 1 1
      lib/mapping/MapFeaturesH3M.cpp

+ 1 - 1
lib/mapping/CCampaignHandler.h

@@ -74,7 +74,7 @@ struct DLL_LINKAGE CampaignRegions
 class DLL_LINKAGE CCampaignHeader
 {
 public:
-	si32 version = 0; //4 - RoE, 5 - AB, 6 - SoD and WoG
+	si32 version = 0; //4 - RoE, 5 - AB, 6 - SoD, WoG and HotA
 	CampaignRegions campaignRegions;
 	int numberOfScenarios = 0;
 	std::string name, description;

+ 1 - 1
lib/mapping/MapFeaturesH3M.cpp

@@ -135,7 +135,7 @@ MapFormatFeaturesH3M MapFormatFeaturesH3M::getFeaturesHOTA(uint32_t hotaVersion)
 	if(hotaVersion < 3)
 	{
 		result.artifactsCount = 163; // + HotA artifacts
-		result.heroesCount = 176; // + Cove
+		result.heroesCount = 177; // + Cove
 		result.heroesPortraitsCount = 187; // + Cove
 	}
 	if(hotaVersion == 3)